function doprint() { document.all('btnPrint').style.visibility = 'hidden'; document.all('btnClose').style.visibility = 'hidden'; try { if (factory == null) { window.print(); } else { if (factory.printing == null) { window.print(); } else { var h = factory.printing.header; var f = factory.printing.footer; //set header and footer to blank factory.printing.header = ""; factory.printing.footer = ""; //print page without prompt factory.DoPrint(false); //restore user's info factory.printing.header = h; factory.printing.footer = f; } } } catch(e) { window.print(); } //show the print and close button document.all("btnPrint").style.visibility = 'visible'; document.all("btnClose").style.visibility = 'visible'; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)