Export Crystal reports to PDF in java(在 java 中将 Crystal 报表导出为 PDF)
问题描述
谁能指导我如何在java中将水晶报表导出为PDF?
Can anyone guide me on how to export crystal reports into PDF in java?
我正在使用 Crystal Report Server XI.
I am using Crystal Report Server XI.
提前致谢.
推荐答案
我已经在此处记录了我的 SAP Crystal Reports for Java 运行时组件 - Java Reporting Component (JRC) 的峰值测试:
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
我使用的是 Business Objects 4.0,可能最重要的是获取 Java 库 - 从以下网址下载SAP Crystal Reports for Java 运行时组件 - Java Reporting Component (JRC)":
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/表格/下载/水晶/eclipse/datasave.asp
网络上有很多示例可供查看 - 您可能会在这里找到一些帮助:http://wiki.sdn.sap.com/wiki/display/BOBJ/Java+Reporting+Component++SDK+Samples
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
一个很好的例子是JRC EXPORT REPORT":http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40d580ce-bd66-2b10-95b0-cc4d3f2dcaef
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
就我而言,我不需要服务器 - 我只使用了 JAR 文件、RPT 文件、数据库和我的 CRConfig.xml 文件:
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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在 java 中将 Crystal 报表导出为 PDF


基础教程推荐
- 多个组件的复杂布局 2022-01-01
- Java Swing计时器未清除 2022-01-01
- 大摇大摆的枚举 2022-01-01
- Java 实例变量在两个语句中声明和初始化 2022-01-01
- 不推荐使用 Api 注释的描述 2022-01-01
- 在 Java 中创建日期的正确方法是什么? 2022-01-01
- 验证是否调用了所有 getter 方法 2022-01-01
- 如何在 Spring @Value 注解中正确指定默认值? 2022-01-01
- 从 python 访问 JVM 2022-01-01
- 如何在 JFrame 中覆盖 windowsClosing 事件 2022-01-01