Skip to Content

Missing CurrentValues on upgraded report

I have written a (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.


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Oct 21, 2015 at 02:33 PM

    Hi Alan,

    That is odd, any parameter in the report no matter what version should return a count in the collection... is it possible to attach the report so I can see if I get a count?


    PS - use the advanced editor to attach the report. Rename it to *.txt first.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.