Viewing the report using Crystal Reports Viewers Java SDK

The Crystal Reports Viewers Java SDK enables you to render a report to HTML and manipulate the view of the report. This lesson will demonstrate how to use the DHTML report page VIewer.

Note:    The Report Page Viewer, DHTML Viewer and Java Viewer refers to the same feature.

To view a report using the Crystal Reports Viewers Java SDK
  1. Double-click the ViewerSample.jsp to open the document.
  2. Below the last import statement, type <%@page import="com.crystaldecisions.report.web.viewer.*"%>.
  3. Below the if statement block, enter this code snippet:
  4. CrystalReportViewer viewer = new CrystalReportViewer();

    viewer.setReportSource(reportSource);

    viewer.setOwnPage(true);

    viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), out);

  5. Right-click ViewerSample.jsp and click Run As > Run on Server.
  6. The Run on Server wizard opens.

  7. Select the option Manually define a new server.
  8. Expand the Apache node and select the correct version on your Apache Tomcat server.
  9. Select the correct version of the Apache Tomcat Server in the Server runtime list.
  10. Select Set server as project default (do not ask again) and click Finish.
  11. A Crystal Reports DHTML report page launches.






Business Objects
http://www.businessobjects.com/
Support services
http://www.businessobjects.com/services/support/