Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.