I want to download a chart which I created using cfchart to excel and save it to local machine. The problem I am experiencing is when I save it in local machine,image is getting expired. The code I used to download to excel is
Expand|Select|Wrap|Line Numbers
- <cfif IsDefined("Excellink")>
- <cfheader name="Content-Disposition" value="filename=chart.xls">
- <cfcontent type="application/msexcel">
- <cfchart
- format = "jpg"
- chartHeight = "300"
- chartWidth = "500"
- style = "mystyle.xml"
- showXGridlines = "no"
- showYGridlines = "yes"
- seriesPlacement = "default"
- foregroundColor = "black"
- dataBackgroundColor = "white"
- showBorder = "yes"
- font = "arial"
- fontSize = "10"
- fontBold = "no"
- fontItalic = "no"
- labelFormat = "number"
- xAxisTitle = "WEEK"
- yAxisTitle = "ORDERS"
- sortXAxis = "no"
- show3D = "no"
- rotated = "no"
- showLegend = "yes"
- tipStyle = "MouseOver"
- showMarkers = "yes"
- markerSize = "4" >
- <cfchartseries
- type="line"
- query="query1"
- itemColumn="WEEK"
- valueColumn="ITEMS"
- seriesColor="7fff00"
- markerStyle="triangle"
- seriesLabel="ITEMS">
- </cfchartseries>
- </cfchart>
- </cfif>
Thanks
Resmi