Rails and MS Word

You have to make a different component independent of Rails which
would parse XSL-FO stylesheets.

I don't think that there's any easy way to work with Word.

I've done this sort of thing using OpenOffice from Rails- it's fairly simple to work with. The easiest way for you might be to create/edit an OpenOffice document and then convert it to a Word document from OpenOffice. I haven't checked, but you might also be able to automate the conversion.


It might also make sense to output an RTF file. There is a Ruby RTF project on Rubyforge, but I've never used it and it looks like it hasn't been updated in a year or so. YMMV.


You may just want to look into using .rtf’s, they are ALOT easier to handle/modify and most likely will open straight in word.