Skip to content
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

print with deviceName does not work after migrating to electron v12 #29

Closed
mrafei opened this issue Jan 1, 2021 · 1 comment
Closed

Comments

@mrafei
Copy link

mrafei commented Jan 1, 2021

Hello, I have migrated my application to 12.0.0-beta.11 and I am using @electron/remote v^1.0.2.

I noticed that the following code is not working properly:

      const { getCurrentWebContents } = require('@electron/remote')
      getCurrentWebContents().print(
          {
            silent: true,
            deviceName: "exampleDevice",
            copies: 1,
            landscape: false,
            margins: { marginType: "none" },
          },

This only prints to selected default printer in windows.
appreciate the help.

@miniak
Copy link
Contributor

miniak commented Sep 8, 2021

This issue has nothing to do with remote. It might be this Electron issue electron/electron#30340

@miniak miniak closed this as completed Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants