Skip to Content
0

Acrobat Reader window does not close after printing PDF

Aug 22, 2017 at 12:48 PM

90

avatar image
Former Member

Hi,

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?

Thanks

Vinay

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
0

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

Share
10 |10000 characters needed characters left characters exceeded