SAP Knowledge Base Article - Public

2987624 - 64 bit PrintController ActiveX component does no exist - Crash in 64 bit WEB application clicking on Print button

Symptom

 In a 64 bit WEB application using CR for VS SP 29 setting the Viewer to ActiveX and not PDF causes the application to to crash.

Environment

Crystal Reports for Visual Studio (all versions)

Reproducing the Issue

  1. Using VS 2019
  2. Using CR for VS SP 29
  3. Run application, note the app is built in x64 mode.
  4. Properties of the Viewer PrintMode is set to ActiveX 
  5. Once the report shows click on the CR Viewers Print button.

Result - the app closes with no error generated.

Request - Error trapping since there is no 64 bit PrintController ActiveX component. We need to handle the Exception gracefully and generate an Exception in the Viewer. For this instance since it does not exist we need to pop up a message indicating "Not able to print, export to PDF" and bring up the PDF Print Dialog.

Cause

There is no 64 bit ActiveX PrintControl dll. Due to most Browsers no longer support ActiveX we have never created a 64 bit version

Resolution

Set the PrintMode in the WEB Viewer properties to PDF.

Note: Escalated to R&D to handle the missing component and not crash the app - suggested pop up the PDF print dialog

Keywords

cr for vs, printmode, web iis, .NET, ActiveX , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio