1421888 - The print range selection of the print dialog for the .NET viewer control only allows one print range

SAP Knowledge Base Article - Public

1421888 - The print range selection of the print dialog for the .NET viewer control only allows one print range

Symptom

  • The print range selection of the print dialog for the .NET viewer control only allows one range of pages like 1-5.
  • The ActiveX viewer print dialog (RDC) allowed multiple ranges separated by a comma like 1-5,1-3.
  • Is there a way to achieve this using the Crystal Reports viewer for .NET?

Environment

Crystal Reports for Visual Studio SP 15

Cause

The Crystal Reports viewer for .NET uses the .NET framework to print a report.

Resolution

As of SP 15 we added the ability to use the PrintOutputController which uses the same Printer Dialog box that Crystal Reports Designer uses and is capable of selecting a range of pages.

In CR for VS you can also set the default in the Windows Form Viewer properties or in code as follows:

  • crystalReportViewer1.PrintMode = PrintMode.PrintToPrinter;
    crystalReportViewer1.PrintMode = PrintMode.PrintOutputController; 

Keywords

forum thread , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , How To

Product

Crystal Reports 2008 V1 ; SAP Crystal Reports 10.0 ; SAP Crystal Reports 4.0 ; SAP Crystal Reports XI ; SAP Crystal Reports XI R2