>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement