function ClientSidePrint(sDivText) { var w = 600; var h = 400; var l = (window.screen.availWidth - w) / 2; var t = (window.screen.availHeight - h) / 2; var sOption = "toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,width=" + w + ",height=" + h + ",left=" + l + ",top=" + t; var objWindow = window.open("LabelPrint.aspx", "Print", sOption); objWindow.document.write(sDivText); objWindow.document.close(); objWindow.print(); objWindow.close(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)