Jump to content

select printer


fungtong

Recommended Posts

Hi All,

 

I am writing a web-based system with php. There are some labels and reports printing. Each requires different printers which are connected to the same client computer.

 

How could I set so that, when I click a "Print Doc A"  button, document A would print to printer A, and click "Print Doc B" button, document B would print to printer B.

 

The printers are different for all users.

 

info: It is a web-base system used within a lan. So each user use the system with a fixed computer.

 

Link to comment
https://forums.phpfreaks.com/topic/53925-select-printer/
Share on other sites

it's pretty easy acctually, well, not eeasy, but possible.

 

php has serial out functions

 

the way I would do it would be to send a number from 1-4 via the serial port to a small microproccessor controller switch box.

 

for building the switchbox if you've never dabbled in microcontrollers I'd start with the "basicstamp" or "pic-axe" both use "basic" for the language, it would need all of about 4 lines of code and then simple relays. there's loads of tutorials out there for hobbyists on the subject.

 

 

how are the 4 printers hooke dup to the host pc? usb?

Link to comment
https://forums.phpfreaks.com/topic/53925-select-printer/#findComment-266718
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.