Chris,

I know of two ways to do this.

1. CFCONTENT and CFHEADER.
As per http://tech.irt.org/articles/js154/index.htm, you can create your MS 
Word template and put CFML placeholders in it, save it as an RTF file, edit the 
RTF file to get or accept data, and then serve that filled-in file to the user 
via CFHEADER and CFCONTENT.  The RTF code is ugly; Dave Watts has pointed out 
that WordPerfect-generated RTF is cleaner.

2. CFOBJECT.
If the server has MS Word installed, you can use code like that at CF Comet < 
http://www.cfcomet.com/cfcomet/word/ > to generate the doc on the server, and 
then let the users download it via a hyperlink.

-David


On Monday, July 09, 2001 7:11 AM, Chris Alvarado 
[SMTP:[EMAIL PROTECTED]] wrote:
> I have an application that needs to generate Word Documents and basically
> open them on the fly. Currently I am using CFCONTENT to do this, however I
> have run into a small problem. I need to be able to use a defined Word
> TEMPLATE.  The template contains a footer and whatnot that needs to be
> contained in the document. Is there a good reference somewhere for using
> CFCONTENT, or is there another way to do this?


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to