emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: James Harkins <jamshark70@gmail.com>
To: Jambunathan K <kjambunathan@gmail.com>
Cc: orgmode <emacs-orgmode@gnu.org>
Subject: Re: Use babel to import table data from OpenDocument spreadsheets?
Date: Wed, 03 Jul 2013 10:35:51 +0800	[thread overview]
Message-ID: <87vc4s5q0o.wl%jamshark70@dewdrop-world.net> (raw)
In-Reply-To: <87y59p80b3.fsf@gmail.com>

At Tue, 02 Jul 2013 20:40:40 +0530,
Jambunathan K wrote:
> Works here for simple files.
> 
>         M-: (org-odt-convert "file.ods" "csv")
> 
> Executing libreoffice4.0 --headless --convert-to csv --outdir /home/kjambunathan/ /home/kjambunathan/file.ods
> convert /home/kjambunathan/file.ods -> /home/kjambunathan//file.csv using Text - txt - csv (StarCalc)
> 
> Exported to /home/kjambunathan/file.csv
> "/home/kjambunathan/file.csv"
> 
> AFAIK, if you can save as CSV from LO UI, then it should work from the
> command line.

Famous last words: "It should work" :)

Okay, I've just tested with two very simple files at the command line. LibreOffice fails to write any output file at all. Apparently this is a common problem. Bing finds [1], but ask.libreoffice.org is down.

Here is the transcript for a simple Writer file containing only the word "test":

$ soffice --headless --convert-to html --outdir /home/dlm/Documents/orgtests/ /home/dlm/Documents/orgtests/html-table-test-word.odt 

$ ls ht*
html-table.html   html-table.ods  html-table.org~
html-table.html~  html-table.org  html-table-test-word.odt

Anyway, I'm not convinced that org-odt-convert would meet my needs anyway. It will have to be a multi-worksheet file, and I'll have to extract just one or two of the worksheets. The macro might be the way to go.

hjh

[1] http://ask.libreoffice.org/en/question/2641/convert-to-command-line-parameter/

  reply	other threads:[~2013-07-03  2:36 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-02 14:10 Use babel to import table data from OpenDocument spreadsheets? James Harkins
2013-07-02 14:19 ` Jambunathan K
2013-07-02 14:30   ` James Harkins
2013-07-02 15:10     ` Jambunathan K
2013-07-03  2:35       ` James Harkins [this message]
2013-07-03  3:05         ` Jambunathan K
2013-07-10  2:19         ` James Harkins
2013-07-10  3:50           ` Jambunathan K
2013-07-18  1:28             ` James Harkins
2013-07-18  9:19               ` Jambunathan K
2013-07-18 15:42                 ` James Harkins
2013-07-18 19:02                   ` Jambunathan K
2013-07-18 19:05                     ` Jambunathan K
2013-07-18 21:32                     ` James Harkins
2013-07-10 21:31           ` Andreas Leha

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vc4s5q0o.wl%jamshark70@dewdrop-world.net \
    --to=jamshark70@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=kjambunathan@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).