When I try to print to a named printer other than my default printer, the system throws an exception "The handle is invalid". However I used the PrinterSettings.IsValid to check before calling print and the print settings are Valid. When I change the default printer to the printer which previously was said to be 'invalid' the exception goes away. This is not a satisfactory solution because my users need to print different things to different printers and they should not have to leave the application to change their default printer. I have also tried creating a 'new' printer settings object with the PrinterName set, but this does not help.
Has anyone seen this before?
The code is somewhat irrelevant because it works so long as you only print to the default printer, however I am using the PrintDocument class to do the printing.
Irrelevantif so then sounds like you need to put in a helpdesk ticket - MethodMan