The below snippet working fine, but it opening the dialog box window,
but i dont want to open the print dialog box ,
just print should done without dialog box,
what snippet i should add in the below snippet ,
And also one doubt, i want to take print out in DOT Matrix Printer, the below snippet will work know ?
var prtContent = document.getElementById(strid);
var WinPrint =
window.open('','','left=0,top=0');
WinPrint.document.write(prtContent.innerHTML);
WinPrint.document.close();
WinPrint.focus();
WinPrint.print();
WinPrint.close();
prtContent.innerHTML=strOldOne;
i developed the billing application ,
If i show the print dialog box, then it consume some seconds to give the print , see i done have more printer,
i have only one printer ,that is dot matrix, when ever i give print command , then it should print the BILL without open the print dialog box,
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…