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
- Open your Internet Explorer
- From the Tools menu, select Internet Options
- In the Security tab, select the web content zone that corresponds to your web application
- Click Custom Level
- In the Security Settings dialog box, scroll down to find the ActiveX controls and plug-ins section
- Select Enable or Prompt for the Download signed ActiveX controls item
- 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