I have problem in printing. I have made frame page this
<frameset rows=”0,*” frameborder=”0″ border=”0″>
<frame src=”ReceiptPage.aspx” name=”topFrame” scrolling=”No” noresize=”noresize” id=”topFrame” title=”topFrame” />
<frame src=”TransactionReport.aspx” name=”mainFrame” scrolling=”No” noresize=”noresize” id=”mainFrame” title=”mainFrame” />
</frameset>
and write following code to print the page without print dialog box but problem is that it is also printing mainFrame. I want to just printing topFrame only not mainFrame.
Can some body help me
[Code]
setTimeout(‘PrintReceipt()’,500);
setTimeout(‘Redirect()’,9000);
function Redirect()
{
window.location = “http://192.168.0.100/Enet/default.aspx”;
document.PrintMessage.submit();
}
function PrintReceipt(){
topFrame.focus()
if (navigator.appVersion.indexOf(“5.0”) == -1) {
var OLECMDID_PRINT = 6;
var OLECMDEXECOPT_DONTPROMPTUSER = 2;
var OLECMDEXECOPT_PROMPTUSER = 1;
var WebBrowser = “<OBJECT ID=”WebBrowser1″ WIDTH=0 HEIGHT=0 CLASSID=”CLSID:8856F961-340A-11D0-A96B-00C04FD705A2″></OBJECT>”;
document.body.insertAdjacentHTML(“beforeEnd”, WebBrowser);
WebBrowser1.ExecWB(6, 2);
WebBrowser1.outerHTML = “”;
}