Javascript Particular area Print
function CallPrint(DivId)
{
var prtContent = document.getElementById(DivId);
var WinPrint = window.open(",",'left=0,top=0,bottom=0,right=0,width=1003,height=800,toolbar=0,scrollbars=0,status=0′);
WinPrint.document.write("<STYLE type=text/css media=print>.page {WRITING-MODE: tb-rl; HEIGHT: 80%}</style>");
WinPrint.document.write("<link href=StyleSheet.css rel=stylesheet type=text/css />");
WinPrint.document.write(prtContent.innerHTML);
WinPrint.document.close();
WinPrint.focus();
WinPrint.print();
WinPrint.close();
}
</script>
No comments:
Post a Comment