cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid Printer Specified Error

Former Member
0 Kudos

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

View Entire Topic
former_member208657
Active Contributor
0 Kudos

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.