[AccessD] Control codes to a printer

Stuart McLachlan stuart at lexacorp.com.pg
Wed Aug 24 19:46:18 CDT 2005


On 24 Aug 2005 at 17:29, John W. Colby wrote:

> I need to send a series of hex characters to an Epson receipt printer to
> execute the cutting.  Hex characters are 1d 56 42 20  The printer is TCP/IP
> so I have an IP address stored in a table and hidden in a form that is open
> when the print command is executed.  This is a Win98 environment.  Does
> anyone already have something similar.
> 

What happens if you open the port and print to it, something like:

OPEN "IP:010.010.010.010" FOR OUTPUT AS  #1
PRINT #1, CHR$(&H1D);CHR$(&H56),CHR$(&H42);CHR$(&H20)
CLOSE #1



-- 
Stuart





More information about the AccessD mailing list