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.
Selected printer as a default printer in windows application
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
SenthilkumarRank #387 · 6.5K pointsPosted Dec 9, 2011, 10:36 PM EST
I am not understanding your requirements.
Do you want to set the first time selected printer as default for the sub sequent request?
Thanks,
Senthil.
saravana narayanan11 pointsPosted Dec 10, 2011, 10:09 PM EST
SenthilkumarRank #387 · 6.5K pointsPosted Dec 11, 2011, 4:54 AM EST
Then the way of implementation has to be changed.
Please use the following method. Include the system.drawing.printing
Once the user take the print out then keep that printer in the session or store it in the database table for maintain the default printer.Thanks,
Senthil.