msdq
msdq

Reputation: 143

How to generate excel report in rails 3 and send it to email

I want to generate excel sheet from data in the database models

Is there any gem for doing this requirement

Upvotes: 2

Views: 2543

Answers (3)

illbzo1
illbzo1

Reputation: 470

I work at Expected Behavior, and we've created a web app called DocRaptor that converts HTML to Excel. DocRaptor is a subscription based product, but we offer a free plan that allows users to create up to 5 documents per month.

Since you mention wanting custom headers, I figured it might be a good fit.

Here's a link to a Switch on the Code blog about using DocRaptor to generate Excel files:

http://www.switchonthecode.com/tutorials/using-doc-raptor-to-create-excel-spreadsheets

And a link to DocRaptor's home page:

http://docraptor.com/

Upvotes: 0

Mohammad Sadiq Shaikh
Mohammad Sadiq Shaikh

Reputation: 3200

You can use axlsx gem for generating the xls documents

these are few links

https://github.com/randym/axlsx

http://axlsx.blog.randym.net/

http://rubygems.org/gems/axlsx

May this help you

Upvotes: 3

halfelf
halfelf

Reputation: 10107

Try axlsx. It's a very good spread sheet generator.
Downloading and email can be done with Rails. No need for other gem.

Upvotes: 1

Related Questions