This should work for you:
<cfsavecontent variable="myContent"> This is the content that will go into my .doc file. This is a test. </cfsavecontent> <cffile action="write" file="#Replace(ExpandPath('*.*'),'*.*','')#test.doc" output="#myContent#"> Best regards, Joshua Rowe -----Original Message----- From: Richard White [mailto:rich...@j7is.co.uk] Sent: Wednesday, October 14, 2009 8:57 AM To: cf-talk Subject: cfcontent create file hi we are using cfcontent and rich text to create a word doc as follows: <cfcontent type="application/msword"><cfoutput>{\rtf1\ansi\ansicpg1252\uc1\deff0\stshfd bch0 etc...</cfoutput> however when we run the cfm page it brings up the download option, whereas we want to create the file and store it on the server can anyone help with this? thanks richard ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327191 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4