question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

win.print() "printer" option no longer works.

See original GitHub issue

NWJS Version : 0.29.0 Operating System : macOS High Sierra 10.13.3

When settings the options object to {printer: ‘foo’,autoprint:false} the preview window should show destination printer as described in options, but instead it chooses some other - i don’t know if its randomly or OS default.

steps to reproduce Run win.print({autoprint:false,printer:'my_printer_device_name'}) on any open window.

Below is attached gif of steps to reproduce. nwjs-print-bug

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rogerwangcommented, Mar 19, 2018

This is fixed in git and will be available in the next nightly build.

0reactions
Christywlcommented, Mar 19, 2018

Still have a problem with v0.29.1: If I clear the data directory %LOCALAPPDATA%/nwjs, the printer can be set successfully. If not, the new printer can’t be set, it uses the previous one. The first time: image The second time: image

Read more comments on GitHub >

github_iconTop Results From Across the Web

My Print button and some printer settings aren't available
Troubleshoot printer problems in Windows 10 · Open Devices and Printers by pressing the Windows logo key + S and typing "Devices and...
Read more >
win.print() "copies" option no longer works. #6440 - GitHub
The UI to specify copies is not always available -- it depends on the printer you choose. Try to specify the "save as...
Read more >
Printer Not Working In Windows 10 - QUICK FIX! - YouTube
This tutorial will show you guys how to diagnose printer issues in Windows 10.This tutorial will apply for computers, laptops, desktops,and ...
Read more >
How to Fix All Printer Printing Issues In Windows PC (Easy)
Fix printing in queue, fail to print documents, printing error, or add to ... windows 10, windows 8.1, and windows 7Click here for...
Read more >
Fix: Printer Not Responding in Windows [Canon, HP, Epson]
What can I do if the printer is not responding? · 1. Check your antivirus and firewall · 2. Check all the printer...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found