Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printstatus() doesn't work!
Message
De
06/08/1999 21:36:34
 
 
À
06/08/1999 19:14:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00250968
Message ID:
00250994
Vues:
16
>When I want to make some printing works I need to check whether the printer is ready or not. When I turn the printer on and then off, printstatus() returns the same value (.T.). What is really happening?

You're talking to the Windows spooler and not the port itself. PRINTSTATUS() doesn't know trhew condition of the port directly, only what is reported by the spooler, and the spooler won't report the error until you try to write at least one character tot he print port. IOW, with Windows, PRINTSTATUS() doesn't work - in fact, even in FPDOS in some situations, when running under NT or Win9x, with the default printer handled by the Windows Spooler, you can't test the port directly.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform