Thanks Adam. Just had a look at the CFMX WACK book by Ben Forta and found a nice section written by Nate Weiss that reads an RTF template file is and replace placeholders with the results from a query. Perfect.
Brian Knott > -----Original Message----- > From: Adam Cameron [SMTP:[EMAIL PROTECTED] > Sent: Monday, 23 August 2004 11:43 > To: CFAussie Mailing List > Subject: [cfaussie] Re: Creating Word Documents > > > Anyone got any good tutorials on creating word documents from > ColdFusion. > > I'm thinking of using the CFContent tag but don't know how to format the > > document. > > There's no particular formatting requirements necessary: Word (since @ > least Word 2000) will successfully parse HTML. I would not attempt to > hack > at Word to find out how its "MS-Word Document Format" codes work. > > Try this: > > <cfheader name="Content-Disposition" value="filename=HelloWorld.doc"> > <cfcontent type="application/msword"> > <table border="1"> > <tr> > <td>Hello</td> > </tr> > <tr> > <td>World</td> > </tr> > </table> > > Adam > > --- > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > To unsubscribe send a blank email to > [EMAIL PROTECTED] > Aussie Macromedia Developers: http://lists.daemon.com.au/ ----------------------------------------------------------------------------------- This e-mail is sent by Suncorp-Metway Limited ABN 66 010 831 722 or one of its related entities ("Suncorp"). Suncorp may be contacted at Level 18, 36 Wickham Terrace, Brisbane or on 1800 689 762 or at suncorp.com.au. The content of this e-mail is the view of the sender or stated author and does not necessarily reflect the view of Suncorp. The content, including attachments, is a confidential communication between Suncorp and the intended recipient. If you are not the intended recipient, any use, interference with, disclosure or copying of this e-mail, including attachments, is unauthorised and expressly prohibited. If you have received this e-mail in error please contact the sender immediately and delete the e-mail and any attachments from your system. If this e-mail constitutes a commercial message of a type that you no longer wish to receive please reply to this e-mail by typing Unsubscribe in the subject line. --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
