Home > Net >  C # call printer handle is invalid
C # call printer handle is invalid

Time:10-03



Use PrintDocument call printers, submitted to the wrong,
Is not a start printing error, but the print data volume up, and after an error, return the wrong print is greater than 1 w zhang or so, it is ok to restart the software and




Did the release of resources, to screen for a long time, looking forward to the great god

CodePudding user response:

Code to the last picture printDocForm. Print (); This sentence error,

CodePudding user response:

System is Windows 7

CodePudding user response:

Whether the memory leak
If not, you put the event to rewrite some then use the try catch under the mandatory capture,

CodePudding user response:

I think is that you print a singleton, but print jobs can be concurrent in the concurrent process of error

CodePudding user response:

The
reference 3 floor XBodhi. Response:
is the memory leak
If not, you put the event to rewrite some then use the try catch under the mandatory capture,


Little elder brother, is said to print event? I doubt the memory leak, but lost points

CodePudding user response:

reference 4 floor jx315425246 response:
I think is that you print a singleton, but print jobs can be concurrent errors generated in the process of concurrent


Little elder brother, what is the solution, I think he won't produce concurrent, just like the cinema we collect the tickets machine, enter a number, and a ticket, ticket is complete, the return to the interface of collect the tickets

CodePudding user response:

Initialization, you use the BegainPrint events, such as the concurrent, when a task has been finished, you call a new printing process, set up the printer, will appear this kind of mistake

CodePudding user response:

Suggest judgment sign, see print tasks to be achieved

CodePudding user response:

Get the print queue information according to the upstairs said, see,

CodePudding user response:

refer to 7th floor jx315425246 response:
initialization, you use the BegainPrint events, such as the concurrent, when a task has been finished, you call a new printing process, set up the printer, can appear this kind of mistake


Thank you little brother, I try,
  •  Tags:  
  • C#
  • Related