I have a report created with Crystal Report 2008. This report uses 40 parameters to control the layout of the report. All parameters are boolean and are incorrect in the saved report. The report is saved with the unchecked report option with the save option because I want to read the results from the database instead of the report.
However, when I report to PDF Let me go to export I get a parameterfildworld value expression.
I have verified that all the five tables in the report have been linked to the following code from their data source.
foreach (table table Doc.Database.Tables in report) {bool is connected = table.TestConnectivity (); Console.light line (table name + "connect?" + Connected. Toastring ()); }
When the data is not saved with a report and it is exported to disk, then what could be the reason for the parameter field contentwiki?
This is the easiest code that can reproduce this problem.
string report = "list_report.rpt"; String pdf = "list_report.pdf"; Report Document Report Doc = New Report Document (); ReportDoc.Load (report); // Setting the parameter (or not) has no effect on the error // All the parameters have a missed / report report Doc.SetParameterValue ("hideRegion", incorrect); ReportDoc.ExportToDisk (CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, pdf);
When you save the data from the report, the report will hit the database Does not try. This is a stable report with saved data This is the reason why there is no error in this report when you try to exceed the parameters without saved data.
The error indicates that you have one or more parameter values which are lost on runtime, do not match, hopefully you are exporting directly to your PDF in your code since you are not seeing the report There is no opportunity to signal for the unavailable values for the engine.
You can create a simple Windows application that loads your report and sends the crystal report in viewer control. Do not report any parameters without saving data You must be prompted for all your parameters, manually add them to the parameter prompt form. Does this work? it must be. Now start adding one parameter code at a time. The parameter prompt form should only be indicated for the parameters which are unavailable. At some point you will get the error again and this should help in reducing the problem.
Honestly,
Donated
Comments
Post a Comment