How to convert Csv into Excel

8 views
Skip to first unread message

Sasi

unread,
Nov 6, 2011, 11:50:38 PM11/6/11
to Ruby on Rails: Talk
Is there any ruby gems or plugin which can be used for converting
(.csv) files inot (.xls) files , or is there any mechanism which can
be used for the conversion of files from csv to xls .

qwan

unread,
Nov 7, 2011, 4:27:58 AM11/7/11
to Ruby on Rails: Talk
Hi

I have written a toolkit in this area, still working toward releasing
the gem on ruby gems but
project/source is here https://github.com/autotelik/interact

The .xls file read/write requires JRuby but is OS independant and does
not require Excel be installed.

The main focus is import/export from active record direct to Excel or
CSV but all the tools for CSV->Excel are in there
.. the excel wrapper to generate Excel from Ruby arrays/data is
under : lib / helpers / jruby / jexcel_file.rb and check out the
specs
and tasks such as interact tasks/excel_generator.rake


Hope that helps
Tom

Colin Law

unread,
Nov 7, 2011, 4:37:31 AM11/7/11
to rubyonra...@googlegroups.com

The spreadsheet gem may help.

Colin

Michael Pavling

unread,
Nov 7, 2011, 4:38:01 AM11/7/11
to rubyonra...@googlegroups.com
On 7 November 2011 09:27, qwan <goo...@autotelik.co.uk> wrote:
> I have written a toolkit in this area, still working toward releasing
> the gem on ruby gems but
> project/source is here https://github.com/autotelik/interact

http://xkcd.com/974/

I tend to just open the CSV in Excel... :-/

Colin Law

unread,
Nov 7, 2011, 5:03:18 AM11/7/11
to rubyonra...@googlegroups.com
On 7 November 2011 09:27, qwan <goo...@autotelik.co.uk> wrote:
> Hi
>
> I have written a toolkit in this area, still working toward releasing
> the gem on ruby gems but
> project/source is here https://github.com/autotelik/interact

Are you planning to support ods files? That is something I am sorely
missing. At the moment I have to use the spreadsheet gem to generate
xls files which I then access from LibreOffice. Yuk!

Colin

Reply all
Reply to author
Forward
0 new messages