<%@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); %>
Business Objects, an SAP company http://www.businessobjects.com/ Support services http://www.businessobjects.com/services/support/ Product Documentation on the Web http://support.businessobjects.com/documentation/ |