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

[Bug]: Electron JS print is not working with deviceName #30340

Closed
3 tasks done
fucktic opened this issue Jul 30, 2021 · 11 comments · Fixed by #31489
Closed
3 tasks done

[Bug]: Electron JS print is not working with deviceName #30340

fucktic opened this issue Jul 30, 2021 · 11 comments · Fixed by #31489
Assignees
Labels

Comments

@fucktic
Copy link

fucktic commented Jul 30, 2021

Preflight Checklist

Electron Version

13.1.17

What operating system are you using?

Windows

Operating System Version

win10 20H2

What arch are you using?

x64

Last Known Working Electron version

9.0.0

Expected Behavior

const options = {

        deviceName: "233B",
        silent: true,
        printBackground: true,
        margins: {
          marginsType: 'custom',
          top: 0,
          bottom: 0,
          left: 0,
          right: 0
        },
        pageSize: {
          width: curTagBaseSet.printSet.width * 1000 - 1000,
          height: curTagBaseSet.printSet.height * 1000,
        }
      }

Actual Behavior

webview print is not working with deviceName

Testcase Gist URL

No response

Additional Information

No response

@veaba
Copy link

veaba commented Aug 2, 2021

v11.0.0 is supported.

But I don't understand, v12.0.0 + v13.1.x is missing this feature.

@pushkin-
Copy link

pushkin- commented Aug 2, 2021

related issues

@miniak
Copy link
Contributor

miniak commented Aug 10, 2021

@fucktic isn't it a duplicate of #29258?

@wwwfkszcom
Copy link

me too

@wwwfkszcom
Copy link

printWindow.webContents.print({
silent: true,
printBackground: false,
deviceName: deviceName,
}, (success, errorType) => {
if (!success) {
console.log(errorType)
}
})

when silent is true deviceName is Not effective

@AkhmedovSH
Copy link

same error I have 3printers when i provide deviceName it always print me on my default printer providing deviceName as option not working

@AkhmedovSH
Copy link

important!

@wwwfkszcom
Copy link

Why isn't this bug fixed? ?????????????????????????????

@wwwfkszcom
Copy link

Many customers cannot print properly

@lauraylq
Copy link

very import to users, could you please fix this bug as soon as possible

@evlquaker
Copy link

This issue is very important to me also. I really hope someone fixes it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants