Hi Tony

I ran into a similar problem and the only way I found around was to write the 
chart to a file. Then use the reference to the newly created file.

I used the name attribute in cfchart i.e. name="tester"

<cfchart showborder="yes"
chartheight="250" chartwidth="300"
yaxistitle="" name="tester" format="png" xaxistitle="" title="Stuff in Chart">
Cfchart stuff
</cfchart

then wrote the chart to a file

<cfset filename="whatever.png">
<cffile action = "write" 
file = "#ExpandPath(".")#/images/#filename#"    
output = "#tester#">
<img src="images/#filename#" />

Probably worth mentioning I had the whole report wrapped in cfsavecontent and 
then called that var in the cfdocument tag.

It's not real pretty and there are probably better ways to do it but hopefully 
it'll save you the dent in the forehead I had for a months after this project. 
Hope that helps and I understood your question.
Jim Thomson


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316129
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to