mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Window.print () failed from the second made #282
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @RodrigoKB on GitHub (Feb 25, 2019).
When calling window.print () for the first time, printing normally occurs. If you call window.print () the second time, the print dialog box appears, I select the printer, I print, and nothing happens.
A to call window.print (), it only works again if the application is restarted.
I checked the Windows print spooler, and everything is working. I can print to other applications normally.
I found at this link https://github.com/electron/electron/issues/14705 that this error occurs in Electronjs.
@georgetsiga commented on GitHub (Mar 14, 2019):
I am also having a similar issue.
My code is a follows:
$scope.Print = function (printData) { console.log(printData); newWin = window.open(""); newWin.document.write(printData); newWin.print(); newWin.close(); };When I hit print for the second time I get a blank frame even if I the printData variable is not empty (I saw this by adding console.log()).
@GregorBiswanger commented on GitHub (May 16, 2019):
Unfortunately, I can not help you with this problem. Maybe it is fixed with Electron 5.0. We will release a big update on Electron.NET in the next few days. This then uses version 5.0.1 of Electron.
@RodrigoKB commented on GitHub (May 23, 2019):
thanks!