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

Missing Report Parameter

Post Author: robarahz

CA Forum: .NET

I just upgraded from Visual Studio 2003 to Visual Studio 2008 and am fighting through the issues with Crystal Reports and the Crystal Reports Viewer.

I am programmatically setting the Report Parameters because I don't want to prompt the user for them. This is the line of code:

report.SetParameterValue("ReportNickname", "MyReportNickName");

This was fine in VS 2003, but now the viewer comes back empty except for an error message saying the report parameters are missing.

Any ideas??

Thanks for any help.

-robert

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 Apr 08, 2008 at 06:44 PM

    Post Author: robarahz

    CA Forum: .NET

    SOLVED.

    The problem was the order of operations. Previously, I would set the parameter and THEN set the report data source. This worked in VS 2003, but not in VS 2008 (and probably not VS 2005). So I changed the code to do report.SetDataSource() first, THEN do report.SetParameterValue().

    Hope that helps someone.

    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.