Hi,
I'm using this code to list the avaliable printers on the client side in a dropdownlist:
For Each strPrinter As [String] In System.Drawing.Printing.PrinterSettings.InstalledPrinters
SelectPrinter.Items.Add(strPrinter)
Next strPrinter
Dim PD As New PrintDocument
SelectPrinter.SelectedValue = PD.DefaultPageSettings.PrinterSettings.PrinterName
I want the user to be able to choose the printer from the dropdownlist. I use this to print the page:
<A HREF="javascript:window.print()">Print</A>
How do I get the page to print to the selected printer?
Thanks
I'm using this code to list the avaliable printers on the client side in a dropdownlist:
For Each strPrinter As [String] In System.Drawing.Printing.PrinterSettings.InstalledPrinters
SelectPrinter.Items.Add(strPrinter)
Next strPrinter
Dim PD As New PrintDocument
SelectPrinter.SelectedValue = PD.DefaultPageSettings.PrinterSettings.PrinterName
I want the user to be able to choose the printer from the dropdownlist. I use this to print the page:
<A HREF="javascript:window.print()">Print</A>
How do I get the page to print to the selected printer?
Thanks