Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Some API to printer management
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00152621
Message ID:
00153471
Vues:
24
>George, it does work, but as noted, only after an error actually occurs. You're not querying the printer per se, but the spooler. The spooler can only report error conditions that have occurred and been reported to it by the printer driver performing a SetPort() operation, which will normally occur as a result of a print job error. You need to interface as a device driver, or as a monitor on a port, to look at the current printer status. I don't believe that either can be done with just VFP code and API calls.
>
Hi Ed,

As I said, I hadn't tested under VFP, so really I don't know if my suggestion would work even after issuing a REPORT command. I do wonder, however, if simply a call to GetLastError() might suffice afterwards. This is just a guess, however. I believe that you'd have to handle the entire printing chore via the API, to determine whether or not an error occurred.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform