Re: cfcontent create file

2009-10-14 Thread James Holmes
You want cfsavecontent, not cfcontent. Write the contents of the cfsavecontent variable into a file with cffile. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/10/14 Richard White rich...@j7is.co.uk: hi we are using cfcontent and rich text to create

RE: cfcontent create file

2009-10-14 Thread Mark Kruger
Richard, You don't really need CFCONTENT (which actually sets up headers in the browser). You are not trying to send your content to the output buffer of IIS. Try cfsavecontent instead. cfsavecontent variable=content {\rtf1\ansi\ansicpg1252\uc1\deff0=stshfdbch0 etc... /cfsavecontent cffile

RE: cfcontent create file

2009-10-14 Thread Joshua Rowe
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

Re: cfcontent create file

2009-10-14 Thread Richard White
thanks, that is exactly what we wanted richard ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive:

Re: cfcontent create file

2009-10-14 Thread Ian Skinner
Joshua Rowe wrote: 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

Re: cfcontent create file

2009-10-14 Thread Rick Root
On Wed, Oct 14, 2009 at 12:32 PM, Ian Skinner h...@ilsweb.com wrote: But a 'doc' file type is a binary file type is it not?  In my experience you can't just write simple text to a with a doc extension and get anything useful.  I could see this working with an plain text (.txt) or rich text