Thursday, December 24, 2009

ASP.NET - Crystal Reports: PrintControl.Cab ActiveX problem

Crystal Reports: PrintControl.Cab ActiveX problem

Problem:
I have a crystal report (some version) with asp.net (usually v2.0), I am using the ActiveX to print the report; I get an error with following symptoms.

-Upon print button click it shows the pop-up window and stop without continue the printing.
-It shows the small print window and vanishes away - nothing happens!
-Print works on some client machines and does not work on some machines.

Workaround:
Specify the version number of the print control in the web
site's web.config file; so, the first time it would download and rest of times it would reuse the print control.

In your web.config file, add the following section with the given url.










The print control is ActiveX and it requires to be downloaded and installed on the client browser. On the systems that still do not print, requires a check if they have enough privileges to install the ActiveX control? Or that they have any printer installed. If they don't then an error is always expected.

Please see this resource shared by Business Objects for more detailed reference.

And also, you may download the PrintControl.CAB file explicitly from this location.

Update: Adding/Configuring a Crystal Report Viewer in web.config.

Update 2011-MAY-11:
You can also try adding the link to "Trusted Sites"; the link from where you are pulling the reports.

Internet Explorer -> Tools ->Internet Options ->Security Tab ->Trusted Sites Security Zone -> Click Sites

and add the url.

No comments:

Post a Comment

Related Posts

Popular Posts