saravana narayanan

saravana narayanan

  • NA
  • 11
  • 14.2k

Selected printer as a default printer in windows application

Dec 10 2011 1:33 AM
 am using below code to pop up and select the printer in the network.
 
Dim d As New PrintDialog()
dim lsPrinter as string
If d.ShowDialog() = DialogResult.OK Then
      lsPrinter =d.PrinterSettings.PrinterName,
end if
 
Now i would like to set the selected printer as the default printer for this applicaton.how can i do it.

Answers (3)