<%@page import="com.crystaldecisions.sdk.occa.report.application.ReportClientDocument" %> <%@page import="com.crystaldecisions.sdk.occa.report.reportsource.*" %> <%@page import="com.crystaldecisions.sdk.occa.report.lib.*" %> <%@page import="com.crystaldecisions.sdk.occa.report.exportoptions.*" %> <%@page import="com.crystaldecisions.report.web.viewer.*"%> <% ReportClientDocument reportClientDoc = new ReportClientDocument(); String report = "/Sample Reports/Custom Functions.rpt"; reportClientDoc.open(report, 0); Object reportSource = reportClientDoc.getReportSource(); ReportExportControl exportControl = new ReportExportControl(); ExportOptions exportOptions = new ExportOptions(); exportOptions.setExportFormatType(ReportExportFormat.RTF); RTFWordExportFormatOptions RTFExpOpts = new RTFWordExportFormatOptions(); RTFExpOpts.setStartPageNumber(1); RTFExpOpts.setEndPageNumber(3); exportOptions.setFormatOptions(RTFExpOpts); exportControl.setReportSource(reportSource); exportControl.setExportOptions(exportOptions); exportControl.setExportAsAttachment(true); exportControl.processHttpRequest(request, response, getServletConfig().getServletContext(), out); %>
SAP BusinessObjects http://www.sap.com/sapbusinessobjects/ Support services http://service.sap.com/bosap-support/ Product Documentation on the Web http://help.sap.com/ |