Well, to be fair, you didn't specify that the file needed to be  
editable upon download so Simon's solution is pretty reasonable.

You might look into RTF.  Some google searches seem to say that you  
can embed images into that format.

On Apr 20, 2009, at 8:58 PM, Simon Macneall wrote:

>
> That's a fabulous answer.
> I wouldn't be asking if I could convince my customers that a PDF  
> would do. They need to be able to edit the document after it is  
> generated.
>
> -1 for helpfulness
>
>
> On Tue, 21 Apr 2009 11:38:01 +0800, Marnen Laibow-Koser 
> <rails-mailing-l...@andreas-s.net 
> > wrote:
>
>>
>> Simon Macneall wrote:
>>> Hi all,
>>>
>>> Does anyone have any suggestions for generating a word doc from a  
>>> linux
>>> rails application?
>>
>> Yes: don't do it.  Word documents have no place on the Web -- they  
>> don't
>> reliably preserve formatting and they don't play nice with Web  
>> browsers.
>> Generate a PDF file instead; prawn works well for this.
>>
>> [...]
>>> Thanks
>>> Simon
>>
>> Best,
>> --
>> Marnen Laibow-Koser
>> http://www.marnen.org
>> mar...@marnen.org
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to