Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to send ESC code to a printer?
Message
De
13/09/1999 00:06:40
 
 
À
12/09/1999 12:41:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00263794
Message ID:
00263877
Vues:
25
>I want to send ESC + '@' to my printer so as to initialize it. I have tried the following but it just printed a strange character and an '@'only:
>SET DEVICE TO PRINTER
>SET PRINT ON
>?? chr(27) + '@'
>SET PRINT OFF
>SET DEVICE TO SCREEN
>And it seems need me to quit my VFP program first then send this signal to my printer, how come?

Hi Power:

Look back on some other recent threads regarding RAWPRINT.Vcx and .Fll -- these are in the Files Section of UT, and allow directly 'squirting' raw files or just strings directly to the printer port, avoiding the way Windows 'eats' those codes or tries to do (usually the wrong...) something with them.

HTH

Rob
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform