Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printstatus() doesn't work!
Message
From
06/08/1999 21:36:34
 
 
To
06/08/1999 19:14:39
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00250968
Message ID:
00250994
Views:
15
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform