I have inherited an Access program that worked fine for at least 10 years.
One of the tasks it performs - printing a batch of 10 to 100 reports and associated PDF documents in collated manner.
If the associated document is Word or Excel - everything goes fine.
When it comes to printing PDF, the report is printed but no PDF. No errors, no printout. Just disappears like into the Black Hole.
I need the Acrobat hidden or, at least, minimized.
This code opens Acrobat. If I click Print icon it prints normally.
lngRetVal = ShellExecute& (lngHwnd, "open", strPath, vbNullString, vbNullString, SW_SHOWNORMAL)
Not an option!
If I try to invoke "print" instead of "open" - no Acrobat opening, no print job in the queue, no printed documents, no errors.
lngRetVal = ShellExecute& (lngHwnd, "Print", strPath, vbNullString, vbNullString, SW_HIDE )
So now it's narrowed down to "Print" that does nothing, not sending command to printer.
Not only that, but if I use "Print" and SW_SHOWNORMAL Acrobat also wouldn't open and gives me a message "Acrobat quit unexpectedly....".
I have (and all other computers that run this Access app) Acrobat library 10 in the references.
Office 365.
Code has been adopted to 64 bit system in 2013.
The problem started on September 14.
Somebody suggested that it might be connected to Win update.
I did the rollback - no change.
Doesn't matter if:
printer is network or local
which computer the access app is running on
I have tried to get help in Microsoft Community support and still not an inch of progress.
Please help.
Here is an example code, will loop through all PDF files in that folder and print them.