A
A
Askar Mukhametshin2019-06-03 23:30:49
JavaScript
Askar Mukhametshin, 2019-06-03 23:30:49

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

2 answer(s)
G
grinat, 2019-06-03
@grinat

Studio code. Electron does not always print everything.

V
Vladimir Proskurin, 2019-06-04
@Vlad_IT

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 question

Ask a Question

731 491 924 answers to any question