SAP Knowledge Base Article - Public

1805359 - How to avoid the ActiveX print control installs prompt, when a report it printed for Crystal Reports web viewer?

Symptom

  • When a Crystal report is printed from Crystal Reports web viewer, a prompt comes up installing Crystal ActiveX PrintControl.
  • This becomes an issue when the end user does not have install rights on the machine.
  • Is there a way to suppress the prompt?

Environment

  • Visual Studio 2008 / Visual Studio 2010
  • Crystal Reports 2008 / Crystal Reports for Visual Studio 2010

Resolution

  • The ActiveX Print Control is wrapped in the PrintControl.cab file which gets shipped with Crystal runtimes.
  • In case of MSI deployment, PrintControl.cab file gets installed at below locations.

C:\Program Files\Business Objects\Common\4.0\crystalreportviewers12\ActiveXControls

And

C:\Inetpub\wwwroot\aspnet_client\system_web\2_0_50727\crystalrepor tviewers12\ActiveX Controls

  • It gets accessed from the application's ASPNet_Client folder when users click the viewer print button.
  • To enable the browser to install the ActiveX is the only way to facilitate the ActiveX Print control.
  • To work it around, PrintControl could be manually installed on every user machine, if it is feasible.
  • However, for ActiveX print mode, letting the Crystal ActiveX Print Control register on the user PC is the only supported solution.
  • To work this around, a custom print method could be built using Crystal print APIs such as ‘PrintToPrinter’ or PrintOutputController.

Keywords

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

Product

Crystal Reports 2008 V1 ; SAP Crystal Reports, developer version for Microsoft Visual Studio