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.