Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set Default Printer

Status
Not open for further replies.

Viruland

Programmer
Dec 6, 2000
61
0
0
BE
I'm want to set the default printer of a PC through my code. I can get a list of all the installed printers but I don't know how to set the Default Printer. The default printer depends on the user that opens my program.

I want to set the printer plmik05 as default.

Code:

Dim t As Integer = 0

For t = 0 To System.Drawing.Printing.PrinterSettings.InstalledPrinters.Count - 1
If (System.Drawing.Printing.PrinterSettings.InstalledPrinters.Item(t) = "plmik05") Then

??? Set as Default ???

End If
Next

Live fast, die young and leave a beautiful corpse behind.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top