java.lang.ClassCastException: org.eclipse.birt.report.model.api.Expression cannot be cast to java.lang.String
at org.eclipse.birt.report.model.util.BoundColumnsMgr.dealAction(BoundColumnsMgr.java:604)
at org.eclipse.birt.report.model.util.BoundColumnsMgr.dealLabel(BoundColumnsMgr.java:568)
at org.eclipse.birt.report.model.writer.BoundColumnsWriterMgr.dealLabel(BoundColumnsWriterMgr.java:479)
at org.eclipse.birt.report.model.util.BoundColumnsMgr.dealNonDataContainerReportItem(BoundColumnsMgr.java:165)
at org.eclipse.birt.report.model.util.BoundColumnsMgr.dealTable(BoundColumnsMgr.java:460)
at org.eclipse.birt.report.model.writer.BoundColumnsWriterMgr.dealTable(BoundColumnsWriterMgr.java:535)
at org.eclipse.birt.report.model.writer.ModuleWriter.visitTable(ModuleWriter.java:2084)
at org.eclipse.birt.report.model.elements.TableItem.apply(TableItem.java:91)
at org.eclipse.birt.report.model.writer.ModuleWriter.writeChildren(ModuleWriter.java:2869)
at org.eclipse.birt.report.model.writer.ModuleWriter.writeContents(ModuleWriter.java:2854)
at org.eclipse.birt.report.model.writer.ModuleWriter.writeContents(ModuleWriter.java:2888)
at org.eclipse.birt.report.model.writer.DesignWriterImpl.writeSlot(DesignWriterImpl.java:170)
at org.eclipse.birt.report.model.writer.DesignWriterImpl.visitReportDesign(DesignWriterImpl.java:78)
at org.eclipse.birt.report.model.elements.ReportDesign.apply(ReportDesign.java:65)
at org.eclipse.birt.report.model.writer.ModuleWriter.writeFile(ModuleWriter.java:315)
at org.eclipse.birt.report.model.writer.ModuleWriter.write(ModuleWriter.java:281)
at org.eclipse.birt.report.model.api.ModuleHandle.save(ModuleHandle.java:1423)
at org.eclipse.birt.report.model.api.ModuleHandle.saveAs(ModuleHandle.java:1443)
at com.huawei.nte.report.view.TestAAAReport.buildReport(TestAAAReport.java:379)
at com.huawei.nte.report.view.TestAAAReport.main(TestAAAReport.java:53)
解决方案:
void addHyperLink(LabelHandle labelHandle)
{
try {
Action action = StructureFactory.createAction();
ActionHandle actionHandle = labelHandle.setAction(action);
// actionHandle.setURI("'http://www.iteye.com'");
// actionHandle.setLinkType(DesignChoiceConstants.ACTION_LINK_TYPE_HYPERLINK);
actionHandle.setDrillThroughReportName("E:\\birt_space\\OrdersAfter\\OrdersAfter.rptdesign");
actionHandle.setLinkType(DesignChoiceConstants.ACTION_LINK_TYPE_DRILL_THROUGH);
} catch (Exception e) {
// TODO: handle exception
}
}
分享到:
相关推荐
org.eclipse.birt.runtime-4.4.2.jar org.eclipse.birt.runtime-4.4.2-sources.jar org.eclipse.birt.runtime-4.4.2-javadoc.jar
BIRT (Business Intelligence and Reporting Tools), 是为 Web 应用程序开发的基于 Eclipse 的开源报表系统,特别之处在于它是以 Java 和 JavaEE 为基础。BIRT 有两个主要组件:基于 Eclipse 的报表设计器,以及部署...
birt报表 API 实例 1.rar birt报表 API 实例 1.rar
org.eclipse.birt.data.oda.adapter.dtp_2.1.1.v20070705-1847.jar
birt的jar包
记录了birt开始报表常见的问题及解决方案,包括与tomcat的整合、各种报表开始方面,这是我个人工作中遇到的问题记录,相信你也遇到过同样的问题吧!
Birt4.5.0 的源码,全部为JAR格式,导入Eclipse请参考文章 http://blog.csdn.net/supercooly/article/details/49357709
Eclipse Business Intelligence and Reporting ... This information should be interesting to report designers as well as to developers or architects involved in integrating BIRT reports into applications.
BabelLanguagePack-birt-zh_3.7.0.v20110723043401.zip eclipse 3.7 birt 汉化包
十二、关于birt使用library时报org.eclipse.birt.report.data.oda.jdbc.JDBCException: Missing properties in Connection.open(Properties).的问题 十三、关于birt使用library时在tomcat环境下无法加载共享主题的...
BIRT.A.Field.Guide.to.Reporting
3.请修改birtUpgrade.properties中的old_driver_dir、backup_driver_dir连个属性,修改为对应的org.eclipse.birt.report.data.oda.jdbc目录名(默认为birt2.2 和2.5); 4.运行build20090715.xml下的upgrade任务; 5....
BIRT e-book BIRT A Field Guide to Reporting
birt报表 API 实例 2.rar birt报表 API 实例 2.rar
BIRT is a powerful reporting platform that provides end-to-end reporting solutions, from creating and deploying reports to integrating report capabilities into other enterprise applications. Two ...
birt_api.CHM
eclipse-birt-2.6.0-1.1.el6.i686.rpm
birt报表资料_珍藏: BIRT报表应用预研报告-0719.doc Birt使用经验谈chart2006.04.11.doc Birt使用小结.doc Birt学习经历.doc
Addison.Wesley.BIRT.A.Field.Guide.3rd.Edition.Feb.2011
Addison Wesley - BIRT.A.Field.Guide.to.Reporting.Oct.2006.pdf Addison Wesley - Integrating.and.Extending.BIRT.Nov.2006.pdf Packt.Publishing.Practical.Data.Analysis.and.Reporting.with.BIRT.Jan.2008.pdf...