Creating report getting failed in ColdFusion 2018

69 views Asked by At

I have tried the below code for creating report in ColdFusion, but it gives failure like in the screenshot,

 <cfchart format="png" name="chartImage">
    <cfchartseries type="bar" query="chart" itemcolumn="title" valuecolumn="level">
 </cfchart>

 <cfset chartImageFile = getTempDirectory() & '\' & createUUID()>
 <cfset fileWrite(chartImageFile, chartImage)>

 <cfreport format="pdf" template="report.cfr" name="grid">
    <cfreportparam name="reportTitle" value="#reportType.title#">
    <cfreportparam name="chartImage" value="#chartImageFile#">
 </cfreport>

<cfset fileDelete(chartImageFile)>

enter image description here

0

There are 0 answers