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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfchart image not exporting to Word when using cfcontent

Status
Not open for further replies.

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

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>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top