Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending characters to a printer
Message
From
27/09/2001 17:05:53
 
 
To
27/09/2001 16:58:03
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00561691
Message ID:
00561696
Views:
23
>I am trying to send system commmands to a printer but I can't get it to work in VFP 6.0 I tried using the same code as the previous application. It was written in clipper.
>
>Here is an example of the commands
>
>chars_out = CHR(1)
>chars_out = chars_out + CHR(2) + "L" + CHR(13) + "D11" + chr(13) + "H10" + chr(13)
>
>chars_out = chars_out + "351100001450350" + "HELLO WORLD" + CHR(13)
>chars_out = chars_out + "1X1100000010007" + "L445112" + CHR(13)
>chars_out = chars_out + "1X1100000010008" + "L110057" + CHR(13)
>
>All it ends up printing is the actual string. How do I send these commands directly to the port?
>
>Tyler

How are you currently trying to send it to the printer? The ??? command sends directly to the printer, bypassing the Windows drivers...
set printer on
??? chars_out
set printer off
Is this for a bar code font?

HTH,
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform