• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 706
  • Last Modified:

MissingParameterField in Crystal Report using VS2005

Hi Experts,

I converted asp.net 1.1 application to asp.net 2.0. I am having problem running the crystal report in VS2005. The report ran fine in VS2003. The report is failing while trying to export to PDF. I am also passing 2 parameters to the report(both parameters seem to have value). But I am getting MissingParameterFieldCurrentValue error.

Any help will be appreciated.

1) Exception Information
*********************************************
Exception Type: CrystalDecisions.CrystalReports.Engine.ParameterFieldCurrentValueException
ErrorID: MissingParameterFieldCurrentValue
Message: Missing parameter values.
Data: System.Collections.ListDictionaryInternal
TargetSite: Boolean ThrowDotNetException(System.Exception)
HelpLink: NULL
Source: CrystalDecisions.ReportAppServer.DataSetConversion

*****************Code********************
 crDiskFileDestinationOptions = New CrystalDecisions.Shared.DiskFileDestinationOptions
            crDiskFileDestinationOptions.DiskFileName = sFilePath
            crExportOptions = rptReport.ExportOptions

            With crExportOptions
                .DestinationOptions = crDiskFileDestinationOptions
                .ExportDestinationType = ExportDestinationType.DiskFile
                .ExportFormatType = ExportFormatType.PortableDocFormat
            End With

            rptReport.Export() //*****failing here

0
shahprabal
Asked:
shahprabal
  • 3
  • 3
1 Solution
 
mlmccCommented:
What version of Crystal?

mlmcc
0
 
shahprabalAuthor Commented:
How to find crystal version. I migrated 2003 asp.net application to 2005.
0
 
mlmccCommented:
Are you using the version that comes with VS?

mlmcc
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
shahprabalAuthor Commented:
Yes! I migrated crystal version in Visual Studio 2003 to crystal version in Visual Studio 2005.
0
 
mlmccCommented:
Did you update the links to use the VS 2005 dlls?

Here is the bible on VS2005 Crystal
http://www.businessobjects.com/global/pdf/dev_zone/VS2005_Walkthroughs.pdf

mlmcc
0
 
shahprabalAuthor Commented:
Found the fix...thanks mlmcc

Here is the fix.
If you are pushing data into CR then make sure that you push your dataset into the report (SetDataSource()) prior to setting up your report parameters.  If you call SetDataSource() after setting up your parameters you will likely see the Missing Parameter Values exception in VS2005.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now