how to control two printers together?

  • Thread starter Thread starter Johnny Hu
  • Start date Start date
J

Johnny Hu

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.
 
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 said:
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?
 
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.
 
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.
 
Back
Top