Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disconnected from network, how to test printer status.
Message
From
16/12/1999 07:42:41
 
 
To
15/12/1999 11:33:03
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00304129
Message ID:
00304575
Views:
24
On Windows OS, printstatus and sys(13) always return .T. or ON.
You need to test the on error.

local m.lcerror,m.llerror
m.llerror=.F.
m.lcerror=on('error')
on error m.llerror=.T.

* do your test print job here


* restore the old error handle
on error &lcerror
if m.llerror
* printer not ready
else
* printer ready
endif
--
FE AVP&Cie
Directeur du département Français
Armoni Informatique
Sydev Applications
MS VFP MVP
Previous
Reply
Map
View

Click here to load this message in the networking platform