Currently it is printing to the default printer.
How to change to a different printer?
VB.Net 2003 & .Net Framework 1.1.
Thank you,
Pete
"jvb" <gom...@gmail.com> wrote in message
news:1139508601.3...@z14g2000cwz.googlegroups.com...
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.
--
HTH
Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Concept S2i inc. (www.s2i.com)
http://emoreau.s2i.com/
"Pete Smith" <PeteS...@hotmail.com> wrote in message
news:OYmI37ZL...@TK2MSFTNGP15.phx.gbl...