Peter De Berdt wrote: > On 29 Sep 2009, at 16:47, Marnen Laibow-Koser wrote: > >> that >> *someone* figured out the spec... > > It's done through OLE and you need a Windows server for it. Plenty of > examples for that.
That's one way, yes. > > You could also try the OpenOffice conversion route, but the number of > hoops and the amount of work you're getting yourself into is going to > be so staggering I wouldn't want to be in your place. > > Basically, you would have to go through these steps: > • Create an ODT template manually with placeholders, like [%value-to- > replace%] > • When instantiating the template with real data in Ruby, unzip the > template ODT (it's a zipped XML), and run against the XML the textual > replace of the placeholders with the actual values. > • Zip the ODT back Doubtful. It should be possible to use OOo's mail merge feature (if that's scriptable) and not generate the XML from scratch. > • Run the conversion ODT -> DOC via OpenOffice command line interface. > > > Best regards > > Peter De Berdt Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---