Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Capturing Acrobat Reader printing errors
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Capturing Acrobat Reader printing errors
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01040598
Message ID:
01040598
Vues:
58
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform