cancel
Showing results for 
Search instead for 
Did you mean: 

Missing CurrentValues on upgraded report

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

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?

Don

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

Former Member
0 Kudos

Hi Don.


I tried to attach the report having renamed it to be .txt but I get a message that the content type of the attachment is not allowed.

Alan

0 Kudos

OK to ask the obvious did you rename the whole report to ".txt" or did you rename it to "myreport.txt" from "myreport.rpt"

Don

Former Member
0 Kudos

I renamed it from StockMovements.rpt to StockMovements.rpt.txt

0 Kudos

testing adding an attachement...

0 Kudos

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.

Don

Answers (0)