-
Notifications
You must be signed in to change notification settings - Fork 15k
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
webContents.print() doesn't work under Windows when 'deviceName' is provided #17260
Comments
@gozzoo the It should be: |
@popod my example seems to be correct. Just to make sure I run this in node:
and the output is this:
It's called 'Shorthand property names' and was introduced in ES2015. Anyways I just checked my actual code and it is:
|
@gozzoo yes, my bad ! your code seems to be correct :) I'm having problems with |
I have the same problems too #17077 |
I have the same issue. Can confirm printing is working as intended on Electron 3.1.6 (Win 10 64 bits) |
it's work fine but I change the default printer settings portrait to landscape then it prints as portrait, why this happening? |
i am too facing same issue. Any update till when this will be resolved. i have to use old version of electron because of this. |
This is working correctly when just |
works on this version |
Expected Behavior
webContents.print()
should send print a job to the specified printerActual behavior
Nothing happens. Callback gets called much latter, for example on program exit.
printToPDF
works though.To Reproduce
Related to #16792
The text was updated successfully, but these errors were encountered: