Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Capturing Acrobat Reader printing errors
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Capturing Acrobat Reader printing errors
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01040598
Message ID:
01040598
Views:
60
Situation is that a clearing house has a method to receive incoming fax documents that are saved as PDF files in a folder location. My program is monitoring this folder and when it finds a PDF file, it is moved to another folder with and renamed. The following sends the PDF to the printer.
.... if this is the first document then the following
Declare Integer ShellExecute ;
 IN SHELL32.Dll ;
 INTEGER nWinHandle,;
 STRING cOperation,;
 STRING cFileName,;
 STRING cParameters,;
 STRING cDirectory,;
 INTEGER nShowWindow

ShellExecute(0, "open", "acrord32.exe", " /p /h "+lcFile, "", 0)
...
...subsequent documents the following code

ShellExecute(0,"print", lcFile,"","",0)
each file is logged as when recieved and printed etc. If any errors happen it is documented as well. However, there are the occasional PDF files that are corrupt and I am not able to capture these errors. For example, a hundred or so faxes will come in one after the other which are converted to PDF's and stored in a designated folder. My routine moves them and sends to the printer and moves on to the next one etc. After the above code is used to sent to printer and there is a corrupt file, acrobat will present an error message and the staff simply clicks OKAY and goes on to next job in the printer QuE.

Problem is that I need to identify these failures for the managment so that appropriate action can take place.

Is there a better way so that one would be able to capture errors from acrobat reader??

Thanks for any suggestions.
Next
Reply
Map
View

Click here to load this message in the networking platform