I investigated this option a couple of years ago trying to generate word documents from php and came up with nothing.
Eventually I did exactly as Barry Beatty describes: created rtf's with placeholder data and shoved my dynamic data in the middle when required to. This is far from a preferred practice and I would not do it again without really good justification. You might want to give this article a whirl, it describes generating ms-compatible markup and changing its MIME type to that of a word document. I don't know how easy or flexible this is, it is literally the result of a three-second google. http://www.sys-con.com/coldfusion/article.cfm?id=542 On Mon, 23 Aug 2004 11:24:58 +1000, KNOTT, Brian <[EMAIL PROTECTED]> wrote: > DOC is what I am after. > > > > > -----Original Message----- > > From: Barry Beattie [SMTP:[EMAIL PROTECTED] > > Sent: Monday, 23 August 2004 11:22 > > To: CFAussie Mailing List > > Subject: [cfaussie] RE: Creating Word Documents > > > > MSWord's .DOC or RTF? > > > > if RTF, this was a regular with the ASP lists about 3+ years ago. the > > gist of it was creating the RTF with placeholder data, saving that and > > then opening it in notepad. that gave you the template with markup. THEn > > replaxce the placeholder data with variables. > > > > this is really a quick and dirty method and could do better with > > FOP-type tool (or wait for Blackstone with it's cfdocument tag). > > > > > > cheers > > barry.b > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of KNOTT, > > Brian > > Sent: Monday, 23 August 2004 11:18 AM > > To: CFAussie Mailing List > > Subject: [cfaussie] 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. > > > > Brian Knott > > MIS Analyst > > Group Accounting & MIS, Accounting and Tax > > (07)383 55977 > > Suncorp Pty Ltd > > > > > > > > ------------------------------------------------------------------------ > > ----------- > > 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/ > > > > > > --- > > 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/ > > --- > 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/ > --- 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/
