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.
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.