Printing with JRViewer report with jasper report which contain a chart 5.5.0

假如想象 提交于 2019-12-02 09:41:07

问题


When I create a report using JasperReports without chart form Java application and I call it from jbutton

I get my report on JRViewer, its mean that my application generate the report when i didn't put any chart in this report but once i modify this report and i add charts the programm generate the following error:

org.jfree.chart.axis.NumberTickUnitSource cannot be cast to org.jfree.chart.axis.TickUnits

I tired to search how to solve this problem but i didn't find nothing on NET


回答1:


solved this issue, include jfreechat-1.0.17.jar and jcommon-1.0.21.jar libraries in my project.

Error org.jfree.chart.axis.NumberTickUnitSource cannot be cast to org.jfree.chart.axis.TickUnits



来源:https://stackoverflow.com/questions/39921064/printing-with-jrviewer-report-with-jasper-report-which-contain-a-chart-5-5-0

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