function printbyid(sId) {
var oPrn = document.getElementById(sId);
var oWin = window.open('', "quickprint");
oWin.document.writeln(oPrn.innerHTML);
oWin.document.close();
oWin.focus();
oWin.print();
oWin.close();
}
< div id="sprint" >
....
< / div >
< input type="button" value="Printeaza Raport" onclick="printbyid('sprint');" / >
Thursday, December 30, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment