Re: [Rails] Generate MS Word files in Rails

2015-03-26 Thread Colin Law
On 26 March 2015 at 08:58, Ganesh Ranganathan ganesh.ranganathan...@gmail.com wrote: On Thu, Mar 26, 2015 at 2:22 PM, Colin Law clan...@gmail.com wrote: If you just want to download, open and print then I recommend using pdf. Several possibilities are available for this: I looked at PDF

Re: [Rails] Generate MS Word files in Rails

2015-03-26 Thread Colin Law
On 26 March 2015 at 08:11, Ganesh Ranganathan ganesh.ranganathan...@gmail.com wrote: On Wed, Mar 25, 2015 at 7:32 PM, Scott Ribe scott_r...@elevated-dev.com wrote: 1) You might want to use RTF templates instead. It's a format you can more easily search for your markers and modify, and Word

Re: [Rails] Generate MS Word files in Rails

2015-03-26 Thread Ganesh Ranganathan
On Thu, Mar 26, 2015 at 2:22 PM, Colin Law clan...@gmail.com wrote: If you just want to download, open and print then I recommend using pdf. Several possibilities are available for this: ​I looked at PDF too but the users might want to make minor changes to the layout. The site is for

Re: [Rails] Generate MS Word files in Rails

2015-03-26 Thread Marco Antonio Almeida
Hi Ganesh, I would also recommend you to take a look at RTF, but if like me the .docx was a requirement I would suggest you to take a look at the gem https://github.com/nickfrandsen/htmltoword. It's still in its early stages and doesn't support bulleted lists, but it's pretty simple to use and

Re: [Rails] Generate MS Word files in Rails

2015-03-26 Thread Scott Ribe
On Mar 26, 2015, at 2:11 AM, Ganesh Ranganathan ganesh.ranganathan...@gmail.com wrote: Does RTF pose any formatting challenges as compared to docx? Except bold, italics, bulleting my requirement doesn't need any advanced formatting. In that case, RTF should be quite easy to deal with.

Fwd: [Rails] Generate MS Word files in Rails

2015-03-26 Thread Ganesh Ranganathan
On Wed, Mar 25, 2015 at 7:32 PM, Scott Ribe scott_r...@elevated-dev.com wrote: 1) You might want to use RTF templates instead. It's a format you can more easily search for your markers and modify, and Word will open it directly. ​Thanks for your answer Scott. Does RTF pose any formatting

[Rails] Generate MS Word files in Rails

2015-03-25 Thread Ganesh Ranganathan
Hey all, Can you suggest a good gem for generating word files from Rails. The main requirement is to replace some sections inside an existing template in rails. I used docx_replace, but found that it's not always replacing the variable names with the template values. Thanks, Ganesh -- You

Re: [Rails] Generate MS Word files in Rails

2015-03-25 Thread Scott Ribe
On Mar 25, 2015, at 1:20 AM, Ganesh Ranganathan ganesh.ranganathan...@gmail.com wrote: Can you suggest a good gem for generating word files from Rails. The main requirement is to replace some sections inside an existing template in rails. 1) You might want to use RTF templates instead. It's