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.
Loading
SenthilkumarPosted Dec 11, 2011, 9:54 AM
Then the way of implementation has to be changed.
Please use the following method. Include the system.drawing.printing
foreach (String printer in PrinterSettings.InstalledPrinters)
{
printersList.Items.Add (printer.ToString());
}
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.
saravana narayananPosted Dec 11, 2011, 3:09 AM
SenthilkumarPosted Dec 10, 2011, 3:36 AM
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.