Wednesday, March 28, 2012

RSClientPrint problem

I'm trying to get client side printing to work in asp.net with reporting services 2005. I've got an aspx page to do printing as described here but when I try to render a report I get the following:

1. Print dialog box appears as expected

2. Press print

3. Dialog box appears saying "Print in progress"

4. After a few seconds another dialog box appears saying there was an error printing the report. Error code is 80004005.

I get the same error if I try to preview instad of print.

The (relevent) code is:

<object id="RSClientPrint" classid="CLSID:FA91DF8D-53AB-455D-AB20-F2F023E498D3" codebase="Bin/RSClientPrint.cab#Version=2005,90,1399,0"></object>

<script language="javascript" type="text/javascript">
function printIt() {
RSClientPrint.Print('http://localhost/ReportServer$SQL2005',
'/LMI Reports/GoodsIn&OrderID=1000'),
'Goodsin');
}
</script>

<body onload="printIt()">

Does anybody know what this error is and how I can get the control to work? Its not clear to me what the version on the object statement should be. This example uses the version string from the control but I've also tried 1.0 with the same result. Its also not clear if I should be using RSClientPrint.Authenticate or not. I've tried both true and false with the same result.

Many thanks

Ian

Hi Ian,

I am also getting same problem . do you have any solutions for it ?

suresh babu

|||Ian did you solve this issue?.. if you did it.. please let me know to ayoplac@.hotmail.com
|||No, sadly it was never resolved other than using a different reporting system that actually works.

No comments:

Post a Comment