I am using axlsx gem in my application to export data to excel sheet. On other hand I am using [quickchart]api to show graph on frontend. Is there anyway to use quickchart api in .xlsx template or any other gem that allow me to draw graphs in .xlsx templates so I could export the data with graph. Simple is that I want to export graphs on excel file in my rails application. Please help.
Related
In my project, we are uploading information in database via xls sheet for that we are using gem 'roo' and gem 'axlsx_rails'. Now we need to store the errors that we get while uploading information in database.
We cannot upload code as there are lot of things inter-related to uploading data via excel in project.
Please suggest a ways or gem to do this in rails 5. We are using mysql database.
I want to convert Excel with multiple sheets and Word files to PDF format as a single file using Ruby.
Is there any Script/Gems/Plugins available to achieve this?
You can use libreconv
https://github.com/ricn/libreconv
You'll need to install libre office on your server, which is straightforward.
There is not a Gem doing all the job. but you can combine some:
For excel files - read data using roo GEM - http://roo.rubyforge.org/
For word files Opening .doc files in Ruby
Convert the data readed in previous steps into html.
Then convert it to pdf using: https://github.com/pdfkit/PDFKit
I am trying to create a xls file which includes charts with Ruby. We run ruby on rails in Unix environment(Debian). We currently use Spreadsheet gem. But this gem doesn't seem to have chart capability. Looks like Win32ole gem is for Windows only. Axlsx is more what I need but it works with xlsx files. Anyone know a better way of doing this? Thanks!
The writeexcel gem (github) supports xls and charts.
Any gem or plugins in ruby on rails which will read the data from excel sheet.
Try Spreadsheet GEM. It provides facility to read xls file. You can also try Roo.
Took over an existing Rails 2.3.x app. Need to export some data to xlsx format(Excel 2007).
Unfortunately I cant use plain XLS format as it has a limit of 256 columns per sheet. The data the app exports goes beyond that limit.
Are there any existing gems/plug-ins that can generate XLSX files?
I have google-ed for answers, but nothing worked so far.
I have tried installing simple_xlsx_writer gem, and did the usual gem.config "simple_xlsx_writer" but it kept complaining that it couldn't find the required gem. (e.g. "Missing these required gems: simple_xlsx_writer "). Which is weird as I have it installed.
Looked at roo gem, but it only has the ability read xlsx files. So not good.
Open to any other suggestions so as long as the data can be opening in Excel.
Thanks in advance.
Have you seen the AXLSX Gem? You may have to require you database adapter manually and build the export by still possible. This can an entire workbook sheets, charts, etc. The only caveat I found is that charts cannot be their own sheet.
https://github.com/randym/axlsx