Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
More than just getprinter()
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
More than just getprinter()
Divers
Thread ID:
00294127
Message ID:
00294127
Vues:
61
I have a problema:
getprint() always returns .t.
Even if my printer is OFF

A friend of mine sent me the following code:


handle=FOPEN('lpt1.dos',11)
IF FWRITE(handle,CHR(27)+'@') = 0
FCLOSE(handle)
MESSAGEBOX('Impressora desligada!',48,'Erro')
ENDIF


However the opposite happens
it always returns 0
it means it will say printer is OFF
even if printer is ON

What's wrong with the code above
Help me please ?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform