Need Help!
I have written the following code to display an rtf report for my site. It downloads and displays fine using Netscape. But just shows a bunch of garbage in IE.
Can anyone tell me what's wrong before I yank out every strand of hair from my head?
Thanks!
------------------------------------------------------------
<cfsetting enablecfoutputonly="Yes">
<CFFILE ACTION="Read" file="d:\inetpub\ variable="rtf">
<CFSET DateDepartFormat = DateFormat(select.DateDepart, "mm/dd/yy">
<CFSET ActualCost = dollarformat(select.ActualAmount)>
<CFSET Estimate = dollarformat(select.EstCost)>
<CFSET sumActual = dollarformat(sumactualcost.ATotal)>
<CFSET sumEstimate = dollarformat(sumestimate.ETotal)>
<CFSET RTF = Replace(RTF, "%TripID%", select.TripID)>
<CFSET RTF = Replace(RTF, "%Destination%", select.Destination)>
<CFSET RTF = Replace(RTF, "%ActualCost%", ActualCost)>
<CFSET RTF = Replace(RTF, "%EstimateCost%", Estimate)>
<CFSET RTF = Replace(RTF, "%naturesel%", select.naturesel)>
<CFSET RTF = Replace(RTF, "%Nature%", select.Nature)>
<CFSET RTF = Replace(RTF, "%ETotal%", SumEstimate)>
<CFSET RTF = Replace(RTF, "%ATotal%", SumActual)>
<cfcontent type="application/rtf"><cfoutput>#RTF#</cfoutput>
------------------------------------------------------------
I have written the following code to display an rtf report for my site. It downloads and displays fine using Netscape. But just shows a bunch of garbage in IE.
Can anyone tell me what's wrong before I yank out every strand of hair from my head?
Thanks!
------------------------------------------------------------
<cfsetting enablecfoutputonly="Yes">
<CFFILE ACTION="Read" file="d:\inetpub\ variable="rtf">
<CFSET DateDepartFormat = DateFormat(select.DateDepart, "mm/dd/yy">
<CFSET ActualCost = dollarformat(select.ActualAmount)>
<CFSET Estimate = dollarformat(select.EstCost)>
<CFSET sumActual = dollarformat(sumactualcost.ATotal)>
<CFSET sumEstimate = dollarformat(sumestimate.ETotal)>
<CFSET RTF = Replace(RTF, "%TripID%", select.TripID)>
<CFSET RTF = Replace(RTF, "%Destination%", select.Destination)>
<CFSET RTF = Replace(RTF, "%ActualCost%", ActualCost)>
<CFSET RTF = Replace(RTF, "%EstimateCost%", Estimate)>
<CFSET RTF = Replace(RTF, "%naturesel%", select.naturesel)>
<CFSET RTF = Replace(RTF, "%Nature%", select.Nature)>
<CFSET RTF = Replace(RTF, "%ETotal%", SumEstimate)>
<CFSET RTF = Replace(RTF, "%ATotal%", SumActual)>
<cfcontent type="application/rtf"><cfoutput>#RTF#</cfoutput>
------------------------------------------------------------