billdvldog
Programmer
- Sep 6, 2001
- 43
I am perplexed. I'm using cfcontent (see code below) to output formatted query results into MS Word, but the cfchart I am creating (see code below) does not show up in the resulting Word doc for some reason. The rest of the HTML formatted content appears fine in the Word doc, but the image just won't appear. The chart shows up in the HTML page just fine. I have tried both flash and jpg as the cfchart format type, but neither seems to work when exporting to Word. Any ideas?
Thanks,
Bill
Thanks,
Bill
Code:
<!--- export to Word if selected in the form --->
<cfif outputtype EQ "WORD">
<cfcontent type="application/msword">
<cfheader name="Content-Disposition" value="attachment;filename=detail_report.doc">
</cfif>
<!--- Builds my pie chart --->
<cfchart format="jpg" show3d="yes" chartheight="125" chartwidth="300"
seriesplacement="default"
databackgroundcolor="white" showborder="yes" labelformat="number"
tipstyle="mouseOver" tipbgcolor="FFFFE1"
pieslicestyle="sliced">
<cfchartseries type="pie" colorlist="green, red">
<cfchartdata item="Percent Satisfied" value="#PercentSatisfied#">
<cfchartdata item="Percent Not Satisfied" value="#PercentNotSatisfied#">
</cfchartseries>
</cfchart>