ccnzhibis
Programmer
- Jun 17, 2008
- 2
I have a Word document, which I need to dynamically produce for my customers. I saved the word document as an RTF file, uploaded that to the server, and then wrote the attached code to get the RTF version of the document. When I load the URL, IE asks me to save the file. I don't wish to do this. This URL will hit by automatically by my website, and I want to name the resulting RTF file and be able to save it in a desired location on the server.
The RTF contains some very small <cfoutput> information.
How can I do this?
The RTF contains some very small <cfoutput> information.
How can I do this?
Code:
<cfheader name="Content-Type" VALUE="application/rtf">
<cfheader name="Content-Disposition" value="attachment; filename=q_print.rtf">
<cfcontent type="application/rtf"><cfinclude template="Investment_Strategy.rtf">