on 11-13-2017 9:43 AM
After converting from COM based (OCX) Report viewer, I see that the random page printing option is missing.
Older version I was able to print page 1 and 3 (only 1 and 3, not 2) to the printer. Where as in new version I can only send 1 to 3 to (1,2,3) the printer. I am using same Printer and same machine. I still have the option to print random pages in any other application.
And exactly the error you should get. The PrintToPrinter API is not capable of doing single pages using comma's as it notes in the UI, only format it accepts is a range from page "1-xxx".
P2P is a direct Framework API and is not capable of setting single pages. We cna't change that.
Enter a page range, single Selection is grayed out.
Change the Viewer to PrintOutputController and it uses the same Printer Dialog box that CR Designer uses and can handle single page selections.
You can set it by default in the Viewer properties or set it in code this way:
crystalReportViewer1.PrintMode = PrintMode.PrintOutputController;
crystalReportViewer1.PrintMode = PrintMode.PrintToPrinter;
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 |
---|---|
80 | |
11 | |
10 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.