I am encoding network software. I am printing barcodes.
There are 2 printers on the PC, so the user always needs to select a barcode printer to print a barcode and a laser printer to print reports.
Is there a way to set the printer for the page. (From browser settings or via javascript)
For instance:
www.example.com/barcodeprint.php ----> Barcode Printerwww.example.com/reportprint.php ----> Laser Printer
www.example.com/barcodeprint.php ----> Barcode Printer
www.example.com/barcodeprint.php
www.example.com/reportprint.php ----> Laser Printer
www.example.com/reportprint.php
thank
- js firefox. dos firefox 56. , max firefox 56 , ( firefox 58), firefox, , . , .
.
JavaScript , , , .
, , , Google, API .
No, unfortunately, this is a machine-specific configuration. Even users can have individual printer configurations.
However, there is little hope. You can run JS with printing special event handlers to print instructions for the user to select a specific printer. This will help them choose the right option.
https://developer.mozilla.org/en-US/docs/Web/Guide/Printing
Source: https://habr.com/ru/post/1693744/More articles:Laravel: setting page links by page - phpHow to convert Java Gradle project to Dynamic Web Project? - eclipseSimpleDateFormat toPattern behaves differently in java 9 - javaAES-256-CTR encryption in node JS and decryption in Java - javaWhat is the difference between the two ways we declared a structure? - c ++Django app: unit tests fail due to django.db.utils.IntegrityError - pythonNothing is written to the log file (atlassian jira) - tomcatAuthentication failed on Kestrel, but not on IIS Express - c #An error occurred while performing unit tests in the visual studio: there are no test objects - c #How to search for wildcard files in Common Lisp? - wildcardAll Articles