emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
[parent not found: <eca7bd11a4eb4d3bbb600d77484d4449@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>]
* org-table export to ods/xlsx etc
@ 2017-06-16 10:25 Uwe Brauer
  0 siblings, 0 replies; 14+ messages in thread
From: Uwe Brauer @ 2017-06-16 10:25 UTC (permalink / raw)
  To: emacs-orgmode

Hi

I am sometimes in need to send my org-table spreadhseets to colleagues
who are using (sigh) excel. I thought sending csv would be enough but it
turns out, 

    -  that sometimes technical inapt people don't know how to open it,

    -  when using a non english language setting say spanish, numbers
       like 3.4 are interpreted as text.

That can be circumvented by sending the spreadheet as ods/xlsx

I did not find any built in function so I came up with two solutions.
One is using gnumeric but then a path must be set to its binaries and
that is platform dependent. The other relies on `org-odt-convert' which
uses in my case LO/OO.

Somebody with better lisp skills might want to generalize the function
to include in a more comfortable way other formats

(defun org-table-export-to-xlsx () 
  (interactive)
  (let* ((source-file  (file-name-sans-extension (buffer-file-name (current-buffer))))
         (csv-file (concat source-file ".csv")))
    (org-table-export csv-file "orgtbl-to-csv")
    (org-odt-convert csv-file "xlsx")))

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2017-06-22  7:00 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.87.1497628817.13493.emacs-orgmode@gnu.org>
2017-06-17  1:41 ` org-table export to ods/xlsx etc edgar
2017-06-17  2:25 ` Bibliograph:ref.bib vs. \printbibliograpy (WAS: Re: > Citations with org-ref in apa style) edgar
2017-06-18 20:38   ` John Kitchin
2017-06-21 19:54     ` edgar
2017-06-17  2:34 ` How to export LaTeX amsmath align bmatrix to ODT? edgar
     [not found] ` <540c9e41077e41ed940a64e1caaebb3f@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-06-17 15:56   ` Eric S Fraga
     [not found] <eca7bd11a4eb4d3bbb600d77484d4449@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-06-16 15:25 ` org-table export to ods/xlsx etc Eric S Fraga
2017-06-17 14:54   ` Nicolas Goaziou
2017-06-21 13:01     ` Uwe Brauer
     [not found]     ` <4e6e65e9ba354c9a8dab18796c1e92dc@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-06-21 13:43       ` Eric S Fraga
2017-06-22  6:57         ` Uwe Brauer
     [not found]   ` <a7f661839cd64e268ffe1ccbeb208777@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-06-17 15:50     ` Eric S Fraga
2017-06-17 16:38   ` Uwe Brauer
2017-06-16 10:25 Uwe Brauer

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).