on 05-09-2016 9:00 AM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.