Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printstatus()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00248738
Message ID:
00248750
Vues:
14
>I am using SYS(13) and PRINTSTATUS() to
>check if my printer is ready or not.
>
>I am having a problem:
>Even if my print is OFF, these functions
>return it is ON.
>
> Does anybody know what to do ?

Ed Rauh had suggestion a while ago:

++++++++++++
Unfortunately, under Windows, you can only check the status through the Windows spooler directly; it can't detect an error condition until it's been reported to the spooler. There are low-level APIs to access the port directly, but they're complex to program in VFP, and won't be of any help with things like netowrk printers, where the underlying ports are competely hidden by the network redirector.

About the only thing I can think of to do easily is to set up the printer as a generic printer, send it a non-printing character, and then test the printer status afterwards.
+++++++++++
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform