One of our applications creates both text and pdf report files. We often need to batch print several hundred of these two kinds of files in a specific order. I wrote a .PRG to COPY FILE the text files and SHELLEXECUTE the pdf files as needed. I put wait() commands with timeouts after printing each type of file to ensure the files stay in order.
A couple weird things that I've noticed:
1. Adobe Acrobat or Acrobat Reader (which ever is on the machine) stays open after the print call via SHELLEXECUTE -- this is minor but may cause issue #2.
2. Fairly often a PDF file will print out prior to one or two other PDF files that were passed to acrobat first.
Anyone know how to call windows API functions to check on Adobe Acrobat's status? Or have any other suggestions?
TIA,
Jeff
A couple weird things that I've noticed:
1. Adobe Acrobat or Acrobat Reader (which ever is on the machine) stays open after the print call via SHELLEXECUTE -- this is minor but may cause issue #2.
2. Fairly often a PDF file will print out prior to one or two other PDF files that were passed to acrobat first.
Anyone know how to call windows API functions to check on Adobe Acrobat's status? Or have any other suggestions?
TIA,
Jeff