The issue with this is that it's not a word doc. Word just happens to have the ability to understand html. This may not be an issue with Word, but I use this cheat with Excel which works great and is an easy way to get formatted tabular data in html or Excel. The problem is that with large files, Excel will take an extremely long time to open the spreadsheet.
I've also gone the RTF route for a Work Order system. It worked fine except for working with a complicated document is horrendous! Any change to the RTF template was a real pain. Trying to figure out where exactly to paste your CF tags and loops in tables and highly formatted RTF was tedious. Now that I'm using CF7, there is not question that I'll use CFreport for all printed output. Terry >I never saw anybody respond, so here's an example I've got that works >for me: ><cfcontent type="application/msword"> ><cfheader name="Content-Disposition" value="attachment; >filename=tempfile.doc"> ><div style="font-size:16pt; font-face:bold;">Here's a dynamic >table</div> ><table> > <cfloop index="i" from="1" to="5"> > <tr> > <cfoutput> > <td>column 1, row #i#</td> > <td>column 2, row #i#</td> > <td>column 3, row #i#</td> > </cfoutput> > </tr> > </cfloop> ></table> > >http://techfeed.net/cfQuickDocs/?cfcontent >http://techfeed.net/cfQuickDocs/?cfheader > >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234818 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54