问题描述
当我使用没有图表形式的Java应用程序的JasperReports创建报告时,我从jbutton调用它
When I create a report using JasperReports without chart form Java application and I call it from jbutton
我在JRViewer上获得报告,这意味着当我在报告中未放置任何图表时,应用程序会生成报告,但是一旦我修改了该报告并添加了图表,程序就会生成以下错误:
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
我很想搜索如何解决此问题,但在NET上却一无所获
I tired to search how to solve this problem but i didn't find nothing on NET
推荐答案
解决了此问题,在我的项目中包括jfreechat-1.0.17.jar和jcommon-1.0.21.jar库.
solved this issue, include jfreechat-1.0.17.jar and jcommon-1.0.21.jar libraries in my project.
错误org.jfree.chart.axis.NumberTickUnitSource无法转换为org.jfree.chart.axis.TickUnits
Error org.jfree.chart.axis.NumberTickUnitSource cannot be cast to org.jfree.chart.axis.TickUnits
这篇关于使用包含碧海图5.5.0的带有jasper报表的JRViewer报表进行打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!