I want to build a web app that will allow, based on answering questions from a series of prompts from users, to generate a report in Microsoft Word and/or PDF format. I would like the output of the report to be configured in the actual code, where the end result will not have to be altered by an user. Is that possible using Ruby and the Rails framework?
3 Answers
Yes, it's quite possible to do with Ruby on Rails.
But that said, this could be done with most any other language, with or without a Web application framework. I would suggest beginning with the language you are already familiar with--if you've done some PHP before, as most beginners have, just use PHP!
Also, find some prebuilt libraries that you can use to do the Word and PDF generation. For example, in Rails, you could use Prawn to generate PDFs. Here's more information on how to generate Word docs in Rails.

- 1
- 1

- 8,016
- 11
- 40
- 48
-
Hey.. Thanks... Im a former Java guy.. So really don't know PHP... But would like to try my hand in Rails.. Really great info.. Thanks again – Roderick May 17 '11 at 21:55
-
In that case, welcome to Rails land! Here's one place you might want to start: http://ruby.railstutorial.org/ruby-on-rails-tutorial-book – Drew Dara-Abrams May 19 '11 at 04:35
fabdocx.com is an demo of such a system, built using docx4j (Java) to process real docx input documents according to the OpenDoPE Convention
The front end is done using the XForms standard (implementation is betterform)
docx4j gives you the PDF part for free.
You could implement the web bit in Ruby on Rails, still using docx4j if you wanted. Several Ruby on Rails guys have declared XForms dead over the years, so you might want to consider their perspective before doing things the way I did.

- 15,352
- 4
- 44
- 84
-
Thanks for the input.. This is super helpful... I will look into every aspect of this... It sounds like it is right down my alley!! – Roderick May 17 '11 at 21:57