Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printstatus()
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00248738
Message ID:
00248750
Views:
12
>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.
+++++++++++
Previous
Reply
Map
View

Click here to load this message in the networking platform