Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check Printer
Message
From
17/06/1999 15:27:28
 
 
To
16/06/1999 21:27:35
Narong Tohku
Knownet Co.,Ltd.
Bangkok, Thailand
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00230256
Message ID:
00231038
Views:
19
>I want check Printer not ready..How I can do?
>My application must printer slip form..I want check printer status before print..
>

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.
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
Reply
Map
View

Click here to load this message in the networking platform