New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'silent: true' for printing not working in version 5. #18123
Comments
Same problem on Ubuntu with Electron 5.0.1 |
Same on macOS Mojave |
Hi, I discover something interesting with this bug. I am running electron with window 10. printWindow.webContents.print({ silent: false, printBackground: false}); -> Print Dialog Appeared printWindow.webContents.print({ silent: false, printBackground: false, deviceName: 'PRINTER_NAME'}); -> Print Dialog NOT Appear printWindow.webContents.print({ silent: true, printBackground: false}); ->Print Dialog NOT Appear & No Print Activity printWindow.webContents.print({ silent: true, printBackground: false, deviceName: 'PRINTER_NAME'}); -> Print Dialog NOT Appear & No Print Activity @sofianguy, is this issue possible relate to the "deviceName" that is not correct? Thanks for help and hope this issue can be fix soon. |
I struggled with this issue for hours before realising it might be Electron, not me. I've noticed the same behaviour. Downgraded to 4.*, still an issue. Upgraded to 6 beta, still an issue. After some more testing I've noticed the same as @gclooi , I can only get any print activity when !silent and deviceName is not specified. (Tried on Mojave and Win10) |
I have also tested yesterday, exactly as @gclooi written test cases, and same result. |
@hiteshambaliya The only way I've found it to work for now is downgrading to Electron 3. |
Ok thank you @StvBB8 . I will check it today and reply here whats happen on Linux Debian buster. |
I have the same problem. I tested under electron 4.2.2 and electron 5.0.2. Only work for electron3, but under electron3, svg doesn't print correctly |
We would love some help in this area. None of the core Electron maintainers have significant experience with printing. If you're interested in tackling this bug (and/or any of the related printing issues), your help would be very welcome. I'd be happy to help you get set up with a development environment (start here). |
I've no skills for this.. sorry. But it seems that @brenca had some experiences with printing ?! He begin some works under the brenca/printing-fixes branch in the electron/electron repo. |
Cheers... Thank a lot all. |
@codebytere For informations, it seems that @brenca had done some works to fix this issue in brenca/printing-fixes commit b9dcdcd. |
@popod ah ok, it looks like that's been stalled so i can try to see where it's at or pick it up from him! thanks for the bump :) |
hi, wich release will include this fix? |
waiting for new here same problem |
Still not working on 6.0.0-beta.13 where this PR is merged |
I tried 6.0.0-beta.13 and it's still not working for me too. Actually, the callback it's called with |
What platform? This is working for me on |
the silent printing works well for me in v6.0.0-beta, but it doesn't work if deviceName is provided |
@vgribdev I found the same, that if deviceName is specified it will not work and callback never called, without deviceName it works and pints on the default device |
Tested v5.0.7 on Windows 10 and callback is never called with deviceName and, if I remove the deviceName the callback is called, but nothing is sent to the printer... |
@codebytere |
|
No need to downgrade. Update to 8.2.0. It's working now. |
i will check,guys don't use 3.1.10 i tested printer missing lot of content while print huge bug there. |
still not working with deviceName These versions v6.0.0-beta.13 and v5.0.7 not responding with deviceName. |
Electron 13.1.9 also bugged. Prints ok when silent: false, no success with silent: true. Any workaround or fix? |
Exactly the same here using Pop_OS! 21.04 |
Got silent: true working at Electron 13.2.1 with printBackground: false, although deviceName doesn't work and the default printer gets selected. |
No luck on 13.1.6, {
silent: true,
printBackground: false
} |
I make it work in linux putting the pageSize implicit. This example is for a label of 5cm x 9,6cm:
|
print({ |
Hey there
I have upgraded an app to version 5 as in the list of fixes was the silent printing bug, but the issue is still the same.
My code:
printWindow.webContents.print({silent: true});
Results in nothing happening at all. No errors thrown or anything. Changing it back to false, brings up the window to select the printer and then it prints perfectly fine. It's just the silent mode that doesn't work.
I am running this on Windows 10, with Node version 10.15.3. I can not try with a different OS as the printer only has drivers for Windows.
Many thanks,
Michael
The text was updated successfully, but these errors were encountered: