Hello,
I am trying to use the RSClientPrint control to print a sql server report. My code looks like this:
<
asp:content id="Content1" contentplaceholderid="cphMain" runat="server">
<OBJECT ID="RsClientPrint" CLASSID="CLSID:0D221D00-A6ED-477C-8A91-41F3B660A832" codebase="?rs:Command=Get&rc:GetImage=8.00.1038.00rsclientprint.cab#Version=1,0,0,0"></OBJECT>
<script language="javascript" type="text/javascript" >
function PrintReport() {
var RSClientPrint = document.getElementById('RSClientPrint');
RSClientPrint.MarginLeft = 12.7;
RSClientPrint.MarginTop = 12.7;
RSClientPrint.MarginRight = 12.7;
RSClientPrint.MarginBottom = 12.7;
//RSClientPrint.PageHeight = 279.4;
//RSClientPrint.PageWidth = 215.9;
RSClientPrint.Culture = 1033;
RSClientPrint.UICulture = 9;
RSClientPrint.Authenticate =
false;
RSClientPrint.Print(
"http://testsql2005/reportserver", "/Dev_Doorstep/Reports/Shipping", "PackingSlip")
}
</script>
<table ....
<tr>
<td>
<input id="btnPrintPackingSlipTest" type="button" value="Print Packing Slip Test" onclick="PrintReport()"/>
<td>
<tr>
.....
.....
</table>
I am getting error- an error ocurred trying to render the report. Am I doing anything wrong here?
Let me know if I need to provide more info.
Thanks.