?
Solved

MissingParameterField in Crystal Report using VS2005

Posted on 2007-10-18
6
Medium Priority
?
699 Views
Last Modified: 2013-11-26
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
Comment
Question by:shahprabal
  • 3
  • 3
6 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 20103840
What version of Crystal?

mlmcc
0
 
LVL 14

Author Comment

by:shahprabal
ID: 20104515
How to find crystal version. I migrated 2003 asp.net application to 2005.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 20104887
Are you using the version that comes with VS?

mlmcc
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 14

Author Comment

by:shahprabal
ID: 20105793
Yes! I migrated crystal version in Visual Studio 2003 to crystal version in Visual Studio 2005.
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 1500 total points
ID: 20106057
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
 
LVL 14

Author Comment

by:shahprabal
ID: 20107878
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

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
Screencast - Getting to Know the Pipeline
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month16 days, 17 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question