Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How To Use PrintSend() for sending ASCII values

133 views
Skip to first unread message

Rajesh Shukla

unread,
Mar 31, 2000, 3:00:00 AM3/31/00
to
Hi All,
Can anyone tell me what code should i write in order to send the following
codes to printer.
Hex Code : 1B 26 6C 31 53
Decimal Code : 27 38 108 49 83
ASCII Code : <ESC>&12S

Thanx
Rajesh

Ricardo Augusto (Brazil)

unread,
Apr 1, 2000, 3:00:00 AM4/1/00
to
Do not use the printSend funciton. Open de printer port (like LPT1 or PRN1)
using the normal open file function fileOpen and use fileWrite to send the
codes direct to the printer port...
Try It !

Ricks

Rajesh Shukla <rajesh...@ushacomm.co.in> escreveu nas notícias de
mensagem:dIJj4A3m$GA...@forums.sybase.com...

Jerry Siegel

unread,
Apr 4, 2000, 3:00:00 AM4/4/00
to
I am doing that for a slip printer. I make the codes a char array.
Also note that the port name needs a colon after it -
li_filenum = FileOpen ('LPT1:', LineMode!, Write!)

Ricardo Augusto (Brazil) wrote in message ...

Ricardo Augusto (Brazil)

unread,
Apr 4, 2000, 3:00:00 AM4/4/00
to
Well, I didn´t use the ':' after the LPT1 and the script worked fine...
You are using the LineMode!. In this mode the fileWrite function
sends a carriage return and line feed to the file (printer, in that case).
Did you try to use the StreamMode ? ? ? ?

Ricks

Jerry Siegel <jer...@data-sci.com.NOSPAM> escreveu nas notícias de
mensagem:zPMTC0jn$GA....@forums.sybase.com...

Jerry Siegel

unread,
Apr 5, 2000, 3:00:00 AM4/5/00
to
Thanks for the info - I did use : and it worked.
For this printer, it wanted the linefeed [and it worked ;-) ], so I didn't
try Streammode.
0 new messages