Creating report getting failed in ColdFusion 2018

百般思念 提交于 2021-01-29 08:12:38

问题


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)>

来源:https://stackoverflow.com/questions/64502944/creating-report-getting-failed-in-coldfusion-2018

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!