From: Shankar on
Hi,

I am using the RSClientPrint ActiveX Control for Printing the SSRS Report.
But its failing to render the report. The below is the web page code,

<HTML>
<HEAD>
<title>PrintReport</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
<script language="javascript">
function fnprint()
{
var obj = document.getElementById('RSClientPrint') ;
obj.MarginLeft = 12.7;
obj.MarginTop = 12.7;
obj.MarginRight = 12.7;
obj.MarginBottom = 12.7;
obj.Culture = 1033;
obj.UICulture = 9;
obj.Print('https://localhost/ReportServer','%2fPrintReportSampleProject%2fPrintReportSample','PrintReportSample');
window.close();
//data="data:application/x-oleobject;base64,jd+R+qtTXUWrIPLwI+SY0wAIAABSQQAApiwAAA=="
}
</script>
</HEAD>
<body MS_POSITIONING="GridLayout" onload="fnprint()">
<form id="Form1" method="post" runat="server">
<OBJECT id="RSClientPrint" style="Z-INDEX: 101; LEFT: 16px; WIDTH: 632px;
POSITION: absolute; TOP: 24px; HEIGHT: 432px"
classid="clsid:FA91DF8D-53AB-455D-AB20-F2F023E498D3"
name="RSClientPrint" VIEWASTEXT>
</OBJECT>
</form>
</body>
</HTML>