Skip to Content
avatar image
Former Member

Acrobat Reader window does not close after printing PDF

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

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

    Add comment
    10|10000 characters needed characters exceeded