In the Project Explorer view,
right-click a saved report, and click
Crystal Reports >
Create Report Viewer JSP.
There are two options:
To use the Viewer Tag Library, select the
"Insert standard Crystal Report Viewer Tag library code" option. Click
OK.
A new JSP page is created that contains the
Tag Lib code to display the report. For more information about the Viewer Tag
Library options, see
Viewer Tag Library.
To insert Java Viewers SDK sample code,
select the "Insert Crystal Reports code snippets to..." option and then select
the appropriate check boxes for the sample code that you want to include in
your JSP page. Click
OK.
Customized sample code for the options you
selected is inserted into the JSP page. The code that is generated is specific
to the selected report that launched the wizard. The new JSP file is created in
the same folder as the report.
If the "Insert Crystal Reports code snippets to..."
option is selected, you can choose which kind of code snippets to add to your
JSP page.
Note: Alternatively, you can add the code needed to
view a Crystal Report to an existing JSP page by dragging a report from the
Project Explorer view to your JSP page.