I'm starting to fall in love with MS office again....
M$ was very smart with Office 2000 in that you can save everything as
straight HTML, meaning that you can also read straight HTML in MS word
or excel (that's all I've tried).
Why is this a big deal? Because they also made it possible to format
the page as it would look in Word/Excel.
For example, I recently made a backend shipping tool for
SecretAgents.com, so that I can export a list of addresses to MS Word
and be able print them out on Avery sticker labels. I'm also starting
to play around with sending HTML to excel, and I just found out that
there is a way to put functions in your <td> tags and have them
calculate values from other cells.
Try this.... open up Word and create the document that you want it to
look like. Then simply Save it as an HTML file.
Open that HTML file up in Studio and add your CFML in, leave all the
stylesheets and <links> etc.
And then simply add this to make it open Word:
<CFHEADER NAME="Content-Disposition" VALUE="attachment;
filename=whateverfile.doc">
<cfcontent type="application/msword" reset="no">
Steve Nelson
http://www.SecretAgents.com
Tools for Fusebox Developers
"Giesbrecht, Jeffrey" wrote:
>
> I know that this doesn't directly pertain to fusebox, all though I would
> like to wrap this up into a fuse.
>
> Does anyone know of some Cold Fusion resources that point the way to
> creating a Word Document from information returned in a query?
>
> Thanks for the help,
>
> Jeff Giesbrecht
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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