I have a rails application. In my application I am generating various reports in CSV formats.
Now due to some issues with header and truncation of data in CSV. I want to save CSV file in to xls format
excel files.
Which is the best way to achieve this?
I am having option of spreadsheet gem
.
But with that I have to rewrite my code again for xls excel files. My whole code is already written to generate CSV. I am generating CSV reports on 15 places.
So please help me i want just to convert my csv files to xls files while generating the files in CSV i will export it directly in to xls format
Please suggest!!