wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Printing on two printers simultaneously Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Printing on two printers simultaneously" Watch "Printing on two printers simultaneously" New topic
Author

Printing on two printers simultaneously

hereisrajesh
Greenhorn

Joined: May 14, 2001
Posts: 7

i have to print the content of a JComponent in two printers connected over a peer-to-peer network simultaneously.
please help me by sending some information about changing default (or setting) printer using java .
thanks in advance

rajesh
Gizzmo Zeuzere
Ranch Hand

Joined: May 11, 2001
Posts: 45
Hi friend !
If you use a PrinterJob, you can use the PrintDialog twice, I think.
if(yourPrinterJob.printDialog())
yourPrinterJob.print();
if(yourPrinterJob.printDialog())
yourPrinterJob.print();
But I'm not sure
hereisrajesh
Greenhorn

Joined: May 14, 2001
Posts: 7
Thanks for your response
here once more i will explain my problem briefly.
i have a peer-to-peer network of three terminals.
For each systems i am having printer connected to the default port.Here each terminals should be able to send information to the respective default printers and also to a common printer connected over the network(These two operations can be in two threads).Here i can set the printers by using the print dialog box what i can get , but it is not desirable for me and i should be able to set both printers in coding part(like setting page size and number of pages) and redirect deferent data to these printers at a time.
Expecting help from all of You,
Rajesh Adukkadukkath

[This message has been edited by hereisrajesh (edited May 15, 2001).]
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
"hereisrajesh",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Posts which contravene the naming convention are not eligible to win books! Please log in with a new name which meets the requirements.

Thanks.

Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Printing on two printers simultaneously