Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to detect if a printer is offline or online
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00681960
Message ID:
00682085
Vues:
29
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...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform