Before you can view or export a report using the SDK, you will need to obtain a report source from the JRC SDK.
The New JavaServer Page dialog box opens.
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.businessobjects.com/ Support services http://www.businessobjects.com/services/support/ |