Hi,
Refer below links mght helps :-
 
https://www.codeproject.com/Questions/784656/Printing-in-one-click-I-dont-want-print-setup-dial
https://www.mindstick.com/Articles/1103/print-and-print-preview-separately-using-html-css-and-javascript