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 comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • 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 comment
    10|10000 characters needed characters exceeded

    • Hi Alan,

      Works for me. is the report file larger than 1 meg? if so that would be why, this system only allows 1 meg files.

      If it is try zipping it up first and then add the .txt extension to the zip file.