Wednesday, March 28, 2012

RSClientPrint in FireFox

Hi,

We are using the RSClientPrint component to print reports from our web application. When we use it from IE all works fine. But on using the FireFox the print method fails. I am using following code to print

Code Snippet

var oRSClientPrint = window.document.getElementById("RSClientPrint");
alert(oRSClientPrint);
if (typeof oRSClientPrint.Print == "undefined")
{
alert("Unable to load client print control.");
return;
}

In FireFox above code fails by raising error message "Unable to load client print control.". As per me FireFox is not able to use the Print method of object, Can you help me on how we can make it to work with FireFox.

Thanks and Regards,
Nav

The control for printing is an ActiveX control and is not supported in non-IE browsers.

There is a plugin for loading ActiveX controls that you may be able to get for firefox or netscape, if you have control over the client pc.

You will probably have to export the report to an html file, redirect to the html file, and use some javascript to popup the print dialog.

cheers,

Andrew

sql

No comments:

Post a Comment