Skip to Content
author's profile photo Former Member
Former Member

Crystal Report Viewer - ToolBar

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 ****************

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 21, 2009 at 08:08 PM

    Which version of CR you are using?

    If its 2008 then try it after replacing webreporting.jar.

    Thanks,

    Tej

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.