在Java中将Crystal报表导出为PDF [英] Export Crystal reports to PDF in java
问题描述
任何人都可以指导我如何使用java将水晶报表导出为PDF?
我使用的是Crystal Report Server XI。
提前感谢。
我已经记录了我的SAP Crystal Reports for Java运行时的峰值测试组件 - Java Reporting Component(JRC)在这里:
http://www.javathinking.com/2011/09/using-crystal-reports-java-api-to.html
我使用Business Objects 4.0,可能最重要的是获取Java库 - 从以下位置下载SAP Crystal Reports for Java运行时组件 - Java Reporting Component(JRC): / p>
http ://www.businessobjects.com/campaigns/forms/downloads/crystal/eclipse/datasave.asp
网络上有很多样品看看 - 你可能会找到一些帮助在这里:
http://wiki.sdn.sap.com/wiki/display/BOBJ/Java+Reporting+Component++SDK+Samples
一个很好的例子是JRC EXPORT REPORT:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40d580ce-bd66 -2b10-95b0-cc4d3f2dcaef
在我的情况下,我不需要一个服务器 - 我只是使用JAR文件,RPT文件,数据库和我的CRConfig.xml文件:
<?xml version =1.0encoding =utf-8?&
< CrystalReportEngine-configuration>
< reportlocation> ..< / reportlocation>
< timeout> 0< / timeout>
< ExternalFunctionLibraryClassNames>
< classname>< / classname>
< / ExternalFunctionLibraryClassNames>
< / CrystalReportEngine-configuration>
Can anyone guide me on how to export crystal reports into PDF in java?
I am using Crystal Report Server XI.
Thanks in advance.
I've documented my spike test for the SAP Crystal Reports for Java runtime components – Java Reporting Component (JRC) here:
http://www.javathinking.com/2011/09/using-crystal-reports-java-api-to.html
I was using Business Objects 4.0, and probably the most important thing was to get the Java library – download ‘SAP Crystal Reports for Java runtime components – Java Reporting Component (JRC)’ from:
http://www.businessobjects.com/campaigns/forms/downloads/crystal/eclipse/datasave.asp
There are a lot of samples on the web to look at – you might find something to help here: http://wiki.sdn.sap.com/wiki/display/BOBJ/Java+Reporting+Component++SDK+Samples
A good example to start with is "JRC EXPORT REPORT": http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40d580ce-bd66-2b10-95b0-cc4d3f2dcaef
In my case I didn't need a server - I just used the JAR files, the RPT file, the database and my CRConfig.xml file:
<?xml version="1.0" encoding="utf-8"?>
<CrystalReportEngine-configuration>
<reportlocation>..</reportlocation>
<timeout>0</timeout>
<ExternalFunctionLibraryClassNames>
<classname></classname>
</ExternalFunctionLibraryClassNames>
</CrystalReportEngine-configuration>
这篇关于在Java中将Crystal报表导出为PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!