Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Missing parameter values" at run time

Status
Not open for further replies.

dWd123

Programmer
Jan 19, 2011
10
US
I have a report that runs without any issue when preview in CR or Visual Studio. However, when runs with C# code which provides the parameter values, it threw "Missing parameter values" exception at the following line -
report.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
(where report is ReportDocument report)

The error I got is
'repInfo.StreamFile = report.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat)' threw an exception of type 'CrystalDecisions.CrystalReports.Engine.ParameterFieldCurrentValueException'
Data: {System.Collections.ListDictionaryInternal}
ErrorID: MissingParameterFieldCurrentValue
HResult: -2147215870
HelpLink: null
InnerException: {"Missing parameter values."}
Message: "Missing parameter values."
PromptEngineAvailable: false
Source: "CrystalDecisions.ReportAppServer.DataSetConversion"
StackTrace: " at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)\r\n at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)\r\n at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)\r\n at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options)\r\n at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportFormatType formatType)"
TargetSite: {Boolean ThrowDotNetException(System.Exception)}

I'm pretty sure my code provided the needed values. I really appreciate if anyone can shed some lights on the problem.

Thank you
Chad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top