C
Cerebrus99
Hi Pete,
If there is no user intervention possible, You can use the
PrintDocument.PrinterSettings property, through which you can specify
several Printer settings.
---------------------------------------
Dim pd As New PrintDocument()
' Specify the name of the printer to use.
pd.PrinterSettings.PrinterName = MyPrinter
'Set the no. of copies to print
pd.PrinterSettings.Copies = 2
'Set the range of pages to print
pd.PrinterSettings.PrintRange = PrintRange.AllPages
If pd.PrinterSettings.IsValid then
pd.Print()
Else
MessageBox.Show("Printer is invalid.")
End If
---------------------------------------
If you don't know the names of the installed printers, you can get it from
the PrinterSettings.InstalledPrinters collection.
Regards,
Cerebrus.
If there is no user intervention possible, You can use the
PrintDocument.PrinterSettings property, through which you can specify
several Printer settings.
---------------------------------------
Dim pd As New PrintDocument()
' Specify the name of the printer to use.
pd.PrinterSettings.PrinterName = MyPrinter
'Set the no. of copies to print
pd.PrinterSettings.Copies = 2
'Set the range of pages to print
pd.PrinterSettings.PrintRange = PrintRange.AllPages
If pd.PrinterSettings.IsValid then
pd.Print()
Else
MessageBox.Show("Printer is invalid.")
End If
---------------------------------------
If you don't know the names of the installed printers, you can get it from
the PrinterSettings.InstalledPrinters collection.
Regards,
Cerebrus.