WinPrint.print(); на WinPrint.onload = () => { WinPrint.print(); }
WinPrint.close(); prtContent.innerHTML=strOldOne;