cancel
Showing results for 
Search instead for 
Did you mean: 

How to ask for missing parameter values when exporting?

george_
Explorer
0 Kudos

When I do a preview of a report (using a ReportDocument and ReportViewer object), Crystal Reports will let the user enter parameter values that are missing.

However, when I do an export (using the ExportToDisk method of a ReportDocument object), this doesn't happen, I get an error message "Missing parameter values" instead. The same goes for the PrintToPrinter method.

Can I have CR ask for missing parameter values automatically when doing an export to disk or printing, or do I have to write my own code in this case?

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi George,

No, without interaction from the viewer when exporting through code you need to fill in the log on and parameter info first. Reason being some applications do not use the viewer so there is no handler to prompt for the values.

You need to create your own Parameter and log on UI's.

Always been this way, exporting and printing assume the report is complete and all properties are set.

Don

Answers (0)