Quantcast
Channel: printing handle is invalid
Viewing all articles
Browse latest Browse all 3

printing handle is invalid

$
0
0

I'm having an issue printing using the .NET Framework 2.0.  Part of the exception message is as such:

The handle is invalid
  at System.Drawing.Printing.StandardPrintController.OnEndPrint(PrintDocument document, PrintEventArgs e)

I only experience this issue when trying to print a job that has more than one pages.  The machines that are experiencing the problems are running Win2k Sp4.

I've tried Explicitly initializing the PrintDocument.PrinterController property to a new instance of StandardPrintController so it doesn't try to use the  PrinterControllerWithStatusDialog class, with no success.

On some machines I am able to print jobs that are more than 1 page successfully.  I'm unable to find what the reason is for success on some machines, but failure on others.  The printer I'm printing to is on the LAN.  I unplugged the network cable from a machine that printed successfully and plugged it into a machine that failed printing with no change.

I've tried uninstalling all printers on a failing machine along with drivers, re-install printer and driver (obtained from manufacturer website) with no change.

Any ideas?


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images