Forgot to mention - if I run the template "app_OUTPUT.cfm" by itself, it
displays with the proper formatting...

:> -----Original Message-----
:> From: Les Mizzell [mailto:[EMAIL PROTECTED]]
:> Sent: Thursday, October 10, 2002 9:07 AM
:> To: CF-Talk
:> Subject: RE: cfinclude inside a cffile tag?
:>
:>
:> 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
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Reply via email to