Skip to Content
0
Former Member
Jul 20, 2009 at 03:33 PM

Crystal Report Viewer - ToolBar

28 Views

We are using the Embedded Crystal Reports with the IBM RAD. I am have a JSP that i pass parameters and show the reports. The report comes up fine with the passed in parameters. But when i click on any buttons in the toolbar i get the exception:

com.crystaldecisions.sdk.occa.report.lib.ReportSDKParameterFieldException: The types of the parameter field and parameter field current values are not compatible.---- Error code:-2147213303 Error code name:invalidParameterField

I am also putting the report in Session:

// Store the report document in session

* session.setAttribute(reportName, clientDoc); *

// ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************

{

// Create the CrystalReportViewer object

CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();

// set the reportsource property of the viewer

IReportSource reportSource = clientDoc.getReportSource();

crystalReportPageViewer.setReportSource(reportSource);

// set viewer attributes

crystalReportPageViewer.setOwnPage(true);

crystalReportPageViewer.setOwnForm(true);

// Apply the viewer preference attributes

crystalReportPageViewer.setDisplayPage(true);

crystalReportPageViewer.setDisplayGroupTree(true);

crystalReportPageViewer.setDisplayToolbar(true);

crystalReportPageViewer.setEnableDrillDown(true);

crystalReportPageViewer.setEnableParameterPrompt(true);

crystalReportPageViewer.setHasLogo(false);

crystalReportPageViewer.setReuseParameterValuesOnRefresh(true);

// Process the report

crystalReportPageViewer.processHttpRequest(request, response, application, null);

}

// ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************