on 08-09-2010 11:12 PM
I have an application that allows the user to select the target printer from the list of available printers on the system.
The following code generates the list of printers from which they select:
Dim PrinterList As New List(Of String)
Dim PrintServer = New LocalPrintServer
Dim PrintQueues = PrintServer.GetPrintQueues(New EnumeratedPrintQueueTypes() {EnumeratedPrintQueueTypes.Connections, EnumeratedPrintQueueTypes.Local})
For Each p In PrintQueues
PrinterList.Add(p.FullName)
Next
The selected value is saved. When I go to print, I use the following code to select the printer:
ClientInstructions.PrintOptions.PrinterName = My.Application.PrinterSettings.ActiveLetterheadPrinter
Edited by: Don Williams on Aug 10, 2010 7:08 AM
My first instinct is that there is a configuration problem with the redirected printer. I have little experience with redirected printers personally, but have you looked at the Event viewer on the Terminal Server to see if there are any entries related to printing?
For those wondering what redirected printing is, I found this site useful http://blogs.technet.com/b/askperf/archive/2007/08/24/terminal-server-and-printer-redirection.aspx.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
11 | |
10 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.