在 java 中将 Crystal 报表导出为 PDF

Export Crystal reports to PDF in java(在 java 中将 Crystal 报表导出为 PDF)

本文介绍了在 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

基础教程推荐