If we want to print a content of div
Here is example
strid=clientid of a div
function CallPrint(strid)
{
var WinPrint = window.open('', '', 'letf=100,top=100,width=600,height=600,toolbar=0,scrollbars=1,status=0');
WinPrint.document.write(prtContent.innerHTML);
WinPrint.document.close();
WinPrint.focus();
WinPrint.print();
//WinPrint.close();
}
No comments:
Post a Comment