Morning,

Thanks for all your help on this so far. I've still got one more problem
that I'm scratching my head over. The cfinclude template "app_OUTPUT.cfm"
contains HTML formatting. However, when the file #MyFile# is generated, the
HTML doesn't render - I'm actually seeing the raw HTML code in the file as
below:

<br>0001&nbsp;&nbsp;3.00 W
<br>00ANN
<br>01A01&nbsp;&nbsp


Code below (thanks for your help) works perfectally except for the HTML
rendering...


<cfsavecontent variable="sqlOutput">
  <cfinclude template="app_OUTPUT.cfm">
</cfsavecontent>

<cffile action="WRITE"
        file="c:\inetpub\hostroot\www.mySITE.com\files\#MyFile#"
        output="#sqlOutput#"
        addnewline="Yes">

<cfheader
        name="content-disposition"
        value="attachment; filename=#MyFile#">

<cfcontent type="text/html"
        file="c:\inetpub\hostroot\www.mySITE.com\files\#MyFile#"
        deletefile="No" reset="Yes">


Ideas??

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Reply via email to