在可以使用 SDK 查看或导出报表之前,将需要从 JRC SDK 中获取报表源。
此时将打开“新建 JavaServer 页”对话框。
ViewerSample.jsp。<%@page import="com.crystaldecisions.reports.sdk.*" %>
<%@page import="com.crystaldecisions.sdk.occa.report.reportsource.*" %>
<%@page import="com.crystaldecisions.sdk.occa.report.lib.*" %>
<%
Object reportSource = session.getAttribute("reportSource");
if(reportSource == null)
{
ReportClientDocument reportClientDoc = new ReportClientDocument();
String report = "/Sample Reports/Customer Profile Report.rpt";
reportClientDoc.open(report, 0);
reportSource = reportClientDoc.getReportSource();
session.setAttribute("reportSource", reportSource);
}
%>
| Business Objects http://www.china.businessobjects.com/ 支持服务 http://www.china.businessobjects.com/services/services.htm |