Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disconnected from network, how to test printer status.
Message
De
16/12/1999 07:42:41
 
 
À
15/12/1999 11:33:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00304129
Message ID:
00304575
Vues:
23
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform