Answer the question
In order to leave comments, you need to log in
How to implement printing without a modal window in Electron.js?
It is required through the Electron application in kiosk mode to implement printing to the default printer without displaying a modal window with a printer selection.
There is the following documentation .
Judging by it, it is enough to add to , but, unfortunately, nothing happens. When installing, a modal window opens and after selecting a printer, printing occurs.
Ideally, if the problem can be solved programmatically, but if there are settings at the Windows 10 level, then it will also work at this stage. options: { silent: true }
silent: false
Answer the question
In order to leave comments, you need to log in
You didn't write a version of Electron, which is pretty important because they have something broken in some versions. then they repair, or remove something, tk. there is no one to do it (as was the case with the PDF Viewer, which was removed in the 3.x version, simply because).
For example, here is a PR that fixes a problem with incorrect reading of the print options https://github.com/electron/electron/pull/17052 this is on the fifth version, if you are on it, I recommend updating the minor version.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question