Atozed Forums
Manage devices on the client's computer. - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Manage devices on the client's computer. (/thread-1865.html)



Manage devices on the client's computer. - Сергей Александрович - 08-12-2020

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?


RE: Manage devices on the client's computer. - kudzu - 08-13-2020

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.


RE: Manage devices on the client's computer. - Сергей Александрович - 08-14-2020

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.


RE: Manage devices on the client's computer. - brsoft - 08-14-2020

(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/242182/how-can-i-pop-up-a-print-dialog-box-using-javascript


RE: Manage devices on the client's computer. - Сергей Александрович - 08-14-2020

Yes, thank you. I already understand the difference between Java and Javascript.


RE: Manage devices on the client's computer. - Сергей Александрович - 08-17-2020

Thank you, it worked. How do I exclude a dialog? Print directly to the default printer?