473,322 Members | 1,699 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,322 software developers and data experts.

how to control two printers together?

my program needs to print monthly bills
i want to print bill and bill details on two printers synchronous
how to find the two printers installed on computer and control them to print
together?

regards,

Johnny Hu.
Nov 15 '05 #1
4 3786

"Johnny Hu" <jh***@hotmail.com> wrote in message
news:O%****************@TK2MSFTNGP10.phx.gbl...
my program needs to print monthly bills
i want to print bill and bill details on two printers synchronous
how to find the two printers installed on computer and control them to print together?

To clarify, are you printing the same thing twice, or two different pieces
of information to two different printers?
regards,

Johnny Hu.

Nov 15 '05 #2
PrintDocument pd = new PrintDocument();
pd.PrintPage += new PrintPageEventHandler(pd_PrintPage);
// Specify the printer to use.
pd.PrinterSettings.PrinterName = printer;

if (pd.PrinterSettings.IsValid) {
pd.Print();
}
else {
MessageBox.Show("Printer is invalid.");
}
You may create 2 objects of PrintDocument, and set the PrinterName of each
object's PrinterSetting to the names of your printers, and print them
simutaniously.
"Johnny Hu" <jh***@hotmail.com> дÈëÓʼþ
news:O%****************@TK2MSFTNGP10.phx.gbl...
my program needs to print monthly bills
i want to print bill and bill details on two printers synchronous
how to find the two printers installed on computer and control them to print together?

regards,

Johnny Hu.

Nov 15 '05 #3
is that mean i have to write my own method
pd_PrintPage(Object sender, PrintPageEventArgs ev){...} ?

i read the sample from MSDN PrintDocument Class
can i print image from .TIF format files with this class ?
it is some kind of GDI+ coding, right?

another question is, can the PrintDocuent Class work with Report
control(like Crystal Report) ?

regards,

Johnny Hu.
PrintDocument pd = new PrintDocument();
pd.PrintPage += new PrintPageEventHandler(pd_PrintPage);
// Specify the printer to use.
pd.PrinterSettings.PrinterName = printer;

if (pd.PrinterSettings.IsValid) {
pd.Print();
}
else {
MessageBox.Show("Printer is invalid.");
}
You may create 2 objects of PrintDocument, and set the PrinterName of each
object's PrinterSetting to the names of your printers, and print them
simutaniously.
"Johnny Hu" <jh***@hotmail.com> дÈëÓʼþ
news:O%****************@TK2MSFTNGP10.phx.gbl...
my program needs to print monthly bills
i want to print bill and bill details on two printers synchronous
how to find the two printers installed on computer and control them to

print
together?

regards,

Johnny Hu.


Nov 15 '05 #4
two different things on two printers
they have some relations, just like the database
one printer prints master information on a stylus printer(data from a report
control)
another prints detail information on laser printer(data from .TIF files).

regards,

Johnny Hu.
"Johnny Hu" <jh***@hotmail.com> wrote in message
news:O%****************@TK2MSFTNGP10.phx.gbl...
my program needs to print monthly bills
i want to print bill and bill details on two printers synchronous
how to find the two printers installed on computer and control them to

print
together?


To clarify, are you printing the same thing twice, or two different pieces
of information to two different printers?
regards,

Johnny Hu.


Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Aaron_TekRecycle.com | last post by:
Someone must have done this before?!? I have VBS code that will Enumerate all the Printers in the AD and Add the Printer Connection to the client... I'm just not a web developer so I need some...
7
by: trint | last post by:
How can I add all the network printers to a combobox? Thanks, Trint
1
by: Liverpool fan | last post by:
I have a simple user control that consists of a lebel and a dropdown list that I am using for page navigation. I want to cache this control so that it is reused between pages, however when I add...
0
by: Henrik Juul | last post by:
How do I adopt my default printers settings to another control? I'm using a 3.part reporting-control which must use the default printers settings like margin, orientation.... How do I do that? ...
2
by: Eric Renken | last post by:
Is there a way to Launch the Printer Control panel from a C# application, and if so will the same command work on a Vista computer? I am thinking I will have to do a...
0
by: Ravigwipro | last post by:
Hi, I m able to get the printers object to know what are the printers had been installed and all. here my requirement is i have to write a data from VB to MS Word. for the page setup i have to...
0
by: Steve in Albury | last post by:
How can I show the printers control panel applet from code in dotnet? At present I am just using a System::Diagnostics::Process::Start call to launch control.exe with the parameter printers. It...
0
by: =?Utf-8?B?Ym9icGF0MTIz?= | last post by:
I cannot view my printer from control panel after clicking on printers and faxes and then view installed printers. Can anyone help.
4
by: Frank Rizzo | last post by:
I basically need a list of printers that's returned by the Find Printers dialog ( http://www.sqleffects.com/mystuff/findPrinters.png ). I've tried the path of DirectoryEntry entry = new...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.