Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement