The DHTML report page viewer is an instance of the CrystalReportViewer class. This class has many methods that affect how reports are displayed in a web browser. Some of these methods must be called before the viewer can render a report.
<%@ page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer" %>
<%@ page import="com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory" %>
<%@ page import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSourceFactory2" %>
CrystalReportViewer viewer = new CrystalReportViewer();
The viewer has now been created and initialized.
viewer.setReportSource(reportSource);
Note: Setting setOwnPage to false disables exporting and printing.
viewer.setOwnPage(true);
Note: Once the viewer is created and initialized, you can set a variety of properties related to its display characteristics, database logon handling, and parameter prompting. For more information, see the CrystalReportViewer documentation in the Crystal Reports for Rational Application Developer Java API Reference.
Business Objects http://www.businessobjects.com/ Support services http://www.businessobjects.com/services/support/ |