This content has been marked as final. Show 4 replies
It doesn't have to go into complications like auto-upload. The following code will save the text, table and photo directly to the server as a Word document.
Thanks for the response. It does not work becuase I am unfortunately using Coldfusion 4.5
hmmm. Could you then do it this way? (Come to think of it, it might in fact be a better solution, generally.)
<cfhttp url=" http://127.0.0.1:8500/staffQuiz/page2.cfm" method="GET" resolveurl="Yes" throwOnError="Yes"/>
<cffile action="WRITE" file="c:\cfusionmx7\wwwroot\staffQuiz\testdocument.doc" output="#cfhttp.filecontent#">
<cfheader name="Content-Disposition" value="inline; filename=testdocument.doc">
From left to right: David, Albert, Anne, Fred
Thanks again. I tried the new code and I think I'm getting closer. Now I just have to figure out why I get this error:
The requested file is not ASCII text and can not be rendered.