Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to detect if a printer is offline or online
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00681960
Message ID:
00682085
Views:
27
Hello Reygie,

>Any one who knows a function to detect if a printer is online of offline?
>The printstatus() function of foxpro always returns online even if the printer is not connected or offline.

Both PrintStatus() and Sys(13) are of no use in Visual FoxPro, because they always return the same value: .T. They were useful back in the DOS environment.

I'm not sure there's an easy way, short of calling some Windows OS function, to determine the true status of the printer. Expanding on what Hilmar said, the Windows print buffer is designed to hold a printjob until the printer is ready.

HTH,
Randy Bosma
VFP - Because life is too short to code in something else...
Previous
Reply
Map
View

Click here to load this message in the networking platform