Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Missing CurrentValues on upgraded report

I have written a vb.net (VS2008) wizard that allows a user to select a crystal .rpt file, enter the parameters for that report, then email the pdf that is created when the report is run.
The engine within the wizard is v12.0.2000.0 and everything has worked fine to date.

However a user has a report that had been written in XIr2 and has been upgraded to Crystal2008 which is causing some problems.

My wizard creates an instance of a ReportDocument object and loads the report into it using the OpenReportByTempCopy method. The report should have a default value for each of it's parameters which I believe should be found in DataDefinition.ParameterFields(x).CurrentValues (where x is the parameter number). But the count is zero against all the parameters so my wizard does not know about the default value

The report in question works fine when run using Crystal2008 itself and if I create a simple report within Crystal2008,  the default values are there when I check the ReportDocument object and my wizard picks them up.
My advice to rewrite the report from scratch in Crystal2008 was not accepted as a valid solution so I hope somebody can give me some clues here.

Thanks

Tags:
Not what you were looking for? View more on this topic or Ask a question