Symptom
- using a JSP file to view a report in CR viewer
- this is taking very long, sometimes up to 2 minutes
- viewing the report in CR designer is faster
Environment
Crystal Reports XI R2
Java Reporting Component (JRC) SDK
Crystal Viewer SDK
Resolution
Use the JRC to set the connection information and the parameter info on the report before passing the report object to the viewer. This means there is less work for the viewer which should make the report display faster.
Use the Controller objects of the JRC SDK and set the properties (in this case logon information and parameters) on the ReportClientDocument object instead of on the CrystalReportsViewer object.
There are four different controller objects for different types of information:
DatabaseController
DataDefController
ParameterFieldController
PrintOutputController
SubreportController
See attached sample code for detailed instructions on how to use these objects.
Keywords
KBA , BI-DEV-JAV , BI Software Development Kits (SDKs) - Java , How To
Product
Attachments
crxi_r2_jrc_web_samples.sda |