I've used HWPF (part of POI) to extract content from word docs... I'm not sure how robust the library is for generating word docs though.
I'm interested why you wer unable to gen large worksheets with POI though... I've had a few people tell me they gen sheets in excess of 100k rows with MX + POI. You may have a mem leak in your code... -Dave Ross > I have been asked to repair an old CF application that relies on rtf > templates to generate Word docs on the fly. The document flow is > something like this. A person creates a Word doc and manually inserts > a bunch of CF variables in the document, e.g. #f18#. Another person > takes that document, saves it as rtf, and then copies the rtf source > into a CF template with cfcontent and cfoutput so that the template > spits out an rtf doc with the variables replaced with their values. > > This method used to work ok, apparently, but when the group upgraded > to Word 2002 (or so I am told), all kinds of funny stuff started > happening with the rtf formatting and pound signs around the CF > variables in the rtf source. > > I would like to replace the whole rtf thing with a function that reads > the Word document directly, replaces the CF variables, and spits out > an actual Word file. I have not had to deal with Word in a while and > was wondering if anyone favored a particular method of reading/writing > Word files. I was just poking around on the Apache Jakarta POI site > and that looks like a decent option. Anyone using that API? > > Thanks for any thoughts. > > Rob ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227935 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

