Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RTF - HELP!!!!

Status
Not open for further replies.

nalbiso

Programmer
Aug 31, 2000
71
0
0
US
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=&quot;Yes&quot;>
<CFFILE ACTION=&quot;Read&quot; file=&quot;d:\inetpub\ variable=&quot;rtf&quot;>
<CFSET DateDepartFormat = DateFormat(select.DateDepart, &quot;mm/dd/yy&quot;)>
<CFSET ActualCost = dollarformat(select.ActualAmount)>
<CFSET Estimate = dollarformat(select.EstCost)>
<CFSET sumActual = dollarformat(sumactualcost.ATotal)>
<CFSET sumEstimate = dollarformat(sumestimate.ETotal)>
<CFSET RTF = Replace(RTF, &quot;%TripID%&quot;, select.TripID)>
<CFSET RTF = Replace(RTF, &quot;%Destination%&quot;, select.Destination)>
<CFSET RTF = Replace(RTF, &quot;%ActualCost%&quot;, ActualCost)>
<CFSET RTF = Replace(RTF, &quot;%EstimateCost%&quot;, Estimate)>
<CFSET RTF = Replace(RTF, &quot;%naturesel%&quot;, select.naturesel)>
<CFSET RTF = Replace(RTF, &quot;%Nature%&quot;, select.Nature)>
<CFSET RTF = Replace(RTF, &quot;%ETotal%&quot;, SumEstimate)>
<CFSET RTF = Replace(RTF, &quot;%ATotal%&quot;, SumActual)>
<cfcontent type=&quot;application/rtf&quot;><cfoutput>#RTF#</cfoutput>
------------------------------------------------------------
 
I might be way off here, but what are the percents used for? Shouldnt %TripID% be #TripID#? I've not done anything with rtf in CF, so I might just be blabbing, but thats the only thing that I saw off the top of my head.

Hope that helps,
MG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top