Shourya Sharma
Shourya Sharma

Reputation: 516

Print without "print dialogue" in node-webkit

While building an app using node-webkit for windows, I need to print without the dialogue box. Is this possible?

Similar to: http://drziegler.net/kiosksilent-printing-in-google-chrome/

Any help is appreciated.

Upvotes: 6

Views: 4599

Answers (2)

Xsmael
Xsmael

Reputation: 3962

You can now do it by adding add the option autoprint:true and silent:true Find it in the docs: https://nwjs.readthedocs.io/en/latest/References/Window/#winprintoptions

Upvotes: 0

John W. Clark
John W. Clark

Reputation: 589

I am pretty sure this is still unimplemented at this point. There is an issue on github for it, and it seemed to be a very popular feature request.

https://github.com/rogerwang/node-webkit/issues/56

Printing support was just added in April, This was in the release notes for 0.50.

  • Printing support (#56): window.print() works now. The print preview feature is not included yet. We plan to add it before 0.5.2 release.

Upvotes: 0

Related Questions