Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
I try to print all drawing file.
I using ProPrintExecute().
ProPrintExecute() called MS_PRINT_MGR and appear print dialog.
We try to accept print automatic.
But ProPrintExecute() wait user inputs Accept or Cancel.
I try to use Auto Accept through the Windows API, but the next statement will not run until ProPrintExecute () is finished.
Is there a way to run the code after ProPrintExecute is called?
For example, ProPrintExecute runs in the background or starts the code that appears after ProPrintExecute.
Warm Regards
SeonHo
Thanks
Never tried but can check with multi thread once.
A different topic , but below might be useful:
https://stackoverflow.com/questions/21771701/reading-multiple-files-parallel-into-a-buffer
Run the program that have a following sequence before ProPrintExecute ().
1. Continue checking the print window in the while statement (infinite loop).
2. If the print window exists, press the OK button.
3. The program ends
I can now automatically accept printing with the above routine.
thanks