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

'silent: true' for printing not working in version 12.0.6 and 13.1.9 #30539

Closed
3 tasks done
CoWayger opened this issue Aug 16, 2021 · 2 comments
Closed
3 tasks done

'silent: true' for printing not working in version 12.0.6 and 13.1.9 #30539

CoWayger opened this issue Aug 16, 2021 · 2 comments
Labels

Comments

@CoWayger
Copy link

CoWayger commented Aug 16, 2021

Preflight Checklist

Electron Version

13.1.9

What operating system are you using?

Ubuntu

Operating System Version

Ubuntu 20.04

What arch are you using?

x64

Last Known Working Electron version

11.0.5

Expected Behavior

Prints the webpage

Actual Behavior

Not printing, no error.

Testcase Gist URL

No response

Additional Information

I found issue tracker with same problem for version 5 #18123 It is working fine in 11.0.5 but no success with 12 or 13 branch.

Example:
`let printersInfo = printWindow.webContents.getPrinters();
let printer = printersInfo.filter(printer => printer.isDefault === true)[0];
const options = {
silent: true,
deviceName: printer.name
}

        printWindow.webContents.print(options, () => {
            printWindow = null;
        });`
@pushkin-
Copy link

dupe of this

@ckerr
Copy link
Member

ckerr commented Aug 18, 2021

Closing as a duplicate

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

No branches or pull requests

3 participants