Skip to Content

Acrobat Reader window does not close after printing PDF

Aug 22, 2017 at 12:48 PM


avatar image
Former Member


I print a number of PDF documents in a function using windows shell function

ShellExecuteA (0, "print", as_complete_path_and_filename, ls_null, ls_null, 0)

The problem is that the Adobe Reader window remains open after Printing. Adobe window must be closed after Printing is done. How can I close the window programmetically? How do I know when Printing is finished, I mean when to fire the Close command?



10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member Aug 23, 2017 at 01:56 PM

Hi Vinay;

You may have to use the FindWindow() (MS-Windows API) and the PB Send() commands to locate and then force a close of the AR window as a workaround. Just a thought.

Regards ... Chris

10 |10000 characters needed characters left characters exceeded