You can use the JSP wizard to create a JSP page
that includes customized code snippets for your report, which do the following:
Set
database logon information.
View, export, and print reports.
The JSP wizard generates code snippets based on the contents of
the report. For example, the JSP wizard generates code snippets to set
parameter values based on the number and type of parameters that are in the
report.
To create a JSP page with customized code
snippets, perform the following steps:
In the
Project
Explorer view, right-click a Crystal report and click
Crystal Reports > Create Report Viewer
JSP.
In the
"Add Crystal Report
Viewer Options" box, select
Insert Crystal
Reports code snippets to....
Select the custom code snippets to
add to your JSP page, and click
OK.
The
"Enter File
Name" dialog box appears.
Type a name for the JSP page, and
click
OK.
A JSP page
with custom code snippets is created.
Double-click on the JSP page to
open it.
Edit the JSP page, and replace the
statements marked with
//TODO: with
appropriate values.
Save the JSP page, and run it on an
application server.
Note: Adding code snippets uses the helper
classes in the
com.businessobjects.samples package.
Be sure to include required helper classes when you deploy the application.