Avant de pouvoir visualiser ou exporter un rapport à l'aide du SDK, vous devez obtenir une source de rapport du SDK JRC.
La boîte de dialogue Nouvelle page JavaServer s'ouvre.
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.france.businessobjects.com/ Support technique http://www.businessobjects.com/services/support/ |