Skip to Content
avatar image
Former Member

Page Range in Print Options

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Dec 04, 2017 at 10:08 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 17, 2017 at 05:17 PM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 04, 2017 at 09:23 AM

    I have updated the version 13.0.21.2533 and I get following error when I try to print random pages.

    Add comment
    10|10000 characters needed characters exceeded