cancel
Showing results for 
Search instead for 
Did you mean: 

Page Range in Print Options

Former Member
0 Kudos

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.

View Entire Topic
0 Kudos

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