By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,945 Members | 1,328 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,945 IT Pros & Developers. It's quick & easy.

Select different Printer for different documents

P: 4
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.

info: It is a web-base system used within a lan. So each user use the system with a fixed computer.
Aug 13 '09 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 5,390
with javascript you cannot do that ... javascript's print() method just calls the native print-dialog of the browser and the user needs to choose the printer.

but it might be that you could send the docs from the server to a specific printer when you know the users ip ... its connected printers and then the ip of the printer in question ... but that is no more a javascript question then ...

kind regards
Aug 13 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.