SAP Knowledge Base Article - Public

1605739 - Blank 'Crystal Reports ActiveX Print' window when printing from a VS .NET Web application

Symptom

  • VS .NET web application using the CR DHTM viewer
  • Reports print as expected on the development computer
  • When the application is deployed to WIN 2008 server, the ActiveX Print dialog is blank

Cause

  • This behavior occurs because the client computer is unable to download ActiveX controls
  • The report viewer requires the PrintControl.dll to print reports from the client computer
  • PrintControl.dll downloads automatically if it has not been previously downloaded on to the client computer
  • User that is currently logged on must be able to download ActiveX controls

Resolution

  • To enable the download of ActiveX controls on the client computer, perform the following steps
  1. Open your Internet Explorer
  2. From the Tools menu, select Internet Options
  3. In the Security tab, select the web content zone that corresponds to your web application
  4. Click Custom Level
  5. In the Security Settings dialog box, scroll down to find the ActiveX controls and plug-ins section
  6. Select Enable or Prompt for the Download signed ActiveX controls item
  7. The print dialog box will now appear successfully when clicking the print button in the report viewer
  • Alternatively, use the PDF Print Control as this control does not require permissions

Keywords

visual studio sdk , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , How To

Product

Crystal Reports 2008 V1 ; SAP Crystal Reports XI R2 ; SAP Crystal Reports, developer version for Microsoft Visual Studio ; SAP Crystal Reports, version for Visual Studio .NET 2005 ; SAP Crystal Reports, version for Visual Studio .NET 2008