1183384 - How to print using the ActiveX print control in a Crystal Reports for Visual Studio 2005 .NET web application

SAP Knowledge Base Article - Public

1183384 - How to print using the ActiveX print control in a Crystal Reports for Visual Studio 2005 .NET web application

Symptom

You have created a Crystal Reports .NET application.

Your application is using the CrystalReportViewer to display reports and the ActiveX print control to print reports.

When clients click the print button on the viewer, PrintControl.cab is not downloaded, even though it is located within the CrystalReportViewersXX virtual directory on your web server.

Cause

 

Resolution

To enable users of the web application to download the print control, add the following XML to your web site's web.config file, adding the location of your PrintControl.cab file on the web server in the printControl element.

By default, PrintControl.cab is installed in the following folder:
C:\inetpub\wwwroot\aspnet_client\system_web + the framework and version of the CR Viewer


Note that the <configSections> element needs to be placed as the first child node of the <configuration> element in web.config.

<configSections>
<sectionGroup name="businessObjects">
<sectionGroup name="crystalReports">
<section name="printControl" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null" />
</sectionGroup>
</sectionGroup>
</configSections>
<businessObjects>
<crystalReports>
<printControl>
<add key="url" value="http://myserver/PrintControl.cab" />
</printControl>
</crystalReports>
</businessObjects>

Keywords

printing, activex, printcontrol.dll, printcontrol.cab, download, xir2, .net 2005, asp, dot net, crystalreportviewers115 , 1414082 , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Bug Filed

Product

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