SAP Knowledge Base Article - Public

2284485 - Add registry key to switch PrintMode between PrintToPrinter and PrintOutputController in .NET WinForm Viewer

Symptom

With the Enhancement to allow users to resolve .NET Printing issues there is a new registry key and API in Crystal Reports for Visual studio Windows form viewer to swtch between PrintToPrinter ( Default ) and PrintOutputController when clicking the Print button in the viewer.

To allow the default to be changed without modifying your .NET application you can use this registry key.

Environment

  • SAP BusinessObjects BI platform .Net Runtime 4.1 SP07
  • SAP BusinessObjects BI platform .Net Runtime 4.2
  • SAP Crystal Reports, version for Microsoft Visual Studio SP15

Resolution

This issue is fixed in the patches listed in the "Support Packages & Patches" section below.

The "Support Packages & Patches" section will be populated with the relevant patch levels once they are released.

For Business Intelligence Platform maintenance schedule and strategy see the Knowledge Base Article 2144559

How to add:

For SAP Crystal Reports, version for Microsoft Visual Studio

  • 32 bit machine: [HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports for .NET]
  • 64 bit machine: [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports for .NET]

For SAP BusinessObjects BI Platform 4.1/4.2

  • 32 bit machine: [HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Suite XI 4.0\Crystal Reports for .NET]
  • 64 bit machine: [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SAP BusinessObjects\Suite XI 4.0\Crystal Reports for .NET]

Add "PrintMode" as String value:

  • If the value is set to "PrintToPrinter", the WinForm will use PrintToPrinter to print the report.
  • If the value is set to "PrintOutputController", the WinForm will use PrintOutputController to print the report.
  • If other value is set, this key will not take effect.

Note: From SAP Crytal Reports, version for Microsoft Visual Studio SP14, BI 4.1 SP07, BI 4.2, we can switch the print mode of WinForm Viewer in property page(see SAP Note 2154082). When the registry key is set, it will override the PrintMode set in property page.

See Also

SAP Note - 2218879

Keywords

CRforVS, Printmode, printtoprinter, printoutputcontroller, default print mode, ,net, winform viewer , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio