Appreciate all of the input.  As of now, it looks like James' XML
solution seems to work the best (best being fastest and easiest to
implement).

Saved the document as XML, wrapped it in a <cfsavecontent> with data
from a textarea, and used the <cfsavecontent> variable in a <cffile
action="write"> to create a new .doc.  Seems to maintain the
formatting nicely (including keeping the headers and footers as actual
header and footer objects).

nice :)

Thanks,
Charlie

On 6/1/05, James Holmes <[EMAIL PROTECTED]> wrote:
> One more option, if using Office 2003, is to save the template as WORD
> XML (instead of HTML) and add the relevant section as XML. This should
> retain all formatting etc.
> 
> -----Original Message-----
> From: Ian Skinner [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 2 June 2005 2:42
> To: CF-Talk
> Subject: RE: CF and MS Word
> 
> I can third the RTF approach.  It is not to hard to take an existing RTF
> file that has all the desired output, and then tweak that output with
> some judicious use of CFML.
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208351
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to