Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Manage devices on the client's computer.
#1
The task is as follows:
The client uses the browser to work with the site on their computer. How can I print any text to the client's printer? So that the client does not choose "print" in the browser menu, but the program sends the data to the printer itself at the right time.

Or another option:
How can the program use the scanner (or magnetic card reader) located on the client computer?
Reply
#2
You can use Javascript to trigger the print dialog.

For bar code or mag scanners you will need to likely integrate using their keyboard support and scan into a field which is then read, or use specific browser extensions for those vendors (not recommended).

JNP has worked a lot with certain types of scanners, I'll ask him to respond.
Reply
#3
Thanks. I program in Delphi and don't know Java at all. Could you give an example?
How to call the print function on the client's computer.
Reply
#4
(08-14-2020, 04:32 AM)Сергей Александрович Wrote: Thanks. I program in Delphi and don't know Java at all. Could you give an example?
How to call the print function on the client's computer.

Not Java.
Javascript.
https://stackoverflow.com/questions/2421...javascript
Reply
#5
Yes, thank you. I already understand the difference between Java and Javascript.
Reply
#6
Thank you, it worked. How do I exclude a dialog? Print directly to the default printer?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)