Home > Net >  Why didn't before exit the application, print
Why didn't before exit the application, print

Time:12-15

 
HeYuePrintDialog. PrintVisual (drawingVisual, file);//print
System. Diagnostics. Process. The Start (Application. ResourceAssembly. The Location).
Application. The Current. The Shutdown ();//restart


WPF application, in front of the exit the application, no print? Not behind two sentences, you can print?
How to do it before you exit the application to submit to print

CodePudding user response:

Wait for task execution of the print out again,

CodePudding user response:

reference 1st floor w123wxh response:
wait for task execution of the print out again,

Can not wait to finish printing

CodePudding user response:

Why after the issue of the print command to restart the application, strange

CodePudding user response:

You can set the wait a few seconds to shut down
  •  Tags:  
  • C#
  • Related