[cfaussie] Re: Can you generate Word documents with CF without using COM?
Time for GarethE to espouse the brill iText library, methinks (hint, hint GarethI know you're reading this) Really dirty method (and limited): you can poke text holes in an RTF document - open MSWord and add text - save as RTF - open the RTF doc in notepad, searching for the text you entered. Viola! instant RTF template. - replace text with variables and use cffile, cfsavecontent and string manip to insert your values On 08/02/06, Nathan Drury [EMAIL PROTECTED] wrote: Hi I've been tasked with generating a Word (or RTF) document using CF. I've done this before using COM (need to purchase Word and it's not very stable at all) but am wondering if there is any acceptable non-COM alternative. I'm aware of POI HWPF but as it is still in early development I thought I'd see if anyone knew of any other alternatives before I started trying POI. Thanks Nathan
[cfaussie] Re: Can you generate Word documents with CF without using COM?
Have you tried the ultra simple method of writing out an HTML formatted text file, with the extension of .doc? Word will open and parse that. Pretty limited though, but worked well for us in a number of cases... Bye! -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nathan Drury Sent: Wednesday, 8 February 2006 10:39 AM To: cfaussie Subject: [cfaussie] Can you generate Word documents with CF without using COM? Hi I've been tasked with generating a Word (or RTF) document using CF. I've done this before using COM (need to purchase Word and it's not very stable at all) but am wondering if there is any acceptable non-COM alternative. I'm aware of POI HWPF but as it is still in early development I thought I'd see if anyone knew of any other alternatives before I started trying POI. Thanks Nathan
[cfaussie] Re: Can you generate Word documents with CF without using COM?
If you want to use itext, you can either put up with the library that ships with coldfusion, and use coldfusion's fantasic ability to talk to the java libraries, or recompile the itext library with a slightly modified classpath, and do the same sort of thing, but with the new libraries. Because I think the one that ships with Coldfusion is almost two years old now, and some of the handy methods don't exist. Cheers Gareth. Barry Beattie wrote: Time for GarethE to espouse the brill iText library, methinks (hint, hint GarethI know you're reading this) Really dirty method (and limited): you can "poke text holes" in an RTF document - open MSWord and add text - save as RTF - open the RTF doc in notepad, searching for the text you entered. Viola! instant RTF template. - replace text with variables and use cffile, cfsavecontent and string manip to insert your values On 08/02/06, Nathan Drury [EMAIL PROTECTED] wrote: Hi I've been tasked with generating a Word (or RTF) document using CF. I've done this before using COM (need to purchase Word and it's not very stable at all) but am wondering if there is any acceptable non-COM alternative. I'm aware of POI HWPF but as it is "still in early development" I thought I'd see if anyone knew of any other alternatives before I started trying POI. Thanks Nathan