Skip to Content
May 09, 2016 at 08:00 AM

How to ask for missing parameter values when exporting?


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?