473,396 Members | 1,858 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Select different Printer for different documents

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
2 2362
JosAH
11,448 Expert 8TB
Start reading the API documentation for the 'PrintServiceLookup' class; it can give you a 'PrintService' which in turn can handle a 'PrintJob'. Java's print framework is quite versatlile but you have to read quite a bit.

kind regards,

Jos
Aug 13 '09 #2
JosAH
11,448 Expert 8TB
@OP: please don't crosspost; it is considered rude; what if two people spend time on your question and both give a correct answer? At least one has ruined his or her time.

kind regards,

Jos (moderator)
Aug 15 '09 #3

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

Similar topics

13
by: MLH | last post by:
I want to find a printer that will accept a print-stream from a database app JUST for time/date stamping on inbound documents received at a law office. The printer would have no paper tray, labels...
2
by: Mike | last post by:
I have an Intranet application that I need to print documents from. With C# is it possible to either create a component or web service that will get the users default printer and print the...
2
by: Ryan Gregg | last post by:
I've got a dot matrix printer that I need to print a line at a time to. This is being used for an audit log on an application and every event that occurs needs to print out right as it occurs. ...
0
by: sandro72 | last post by:
hi, i've the following code: Dim myapp As Word.Application myapp = New Word.Application Dim mydoc As New Word.Document Dim pr As New System.Drawing.Printing.PrinterSettings Dim PrNames...
6
by: Pipo | last post by:
Hi, Does anyone know how I can read out the printer status? I want to sent a bulk of documents to the printer (or 1 by 1) but if something goes wrong e.g. out of paper, cartridge empty, tray...
0
by: hamil | last post by:
I have a graphic file demo program that almost works. My form has a PageSetupDialog, PrintPreview, PrintDialog, and a PrintDocument control. Sample code follows. Now here is the quesion. When I...
4
by: Gregory Gadow | last post by:
I've cobbled together a PrinterClass that takes a text file and dumps it to a printer. The app using is has multiple threads, all of which need access to a shared instance. Can someone point me to...
0
by: mafandon | last post by:
Hello all... My application uses custom reports from Microsoft's report viewer and not Crystal Reports. My understanding is there is no way to make the printdialog select a different printer...
1
by: pexp | last post by:
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.