Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to send ESC code to a printer?
Message
From
13/09/1999 00:06:40
 
 
To
12/09/1999 12:41:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00263794
Message ID:
00263877
Views:
26
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform