Possibility for printing on register paper

J

Jack

Hi, does anybody can help if there is a possibility for
access to print on register paper? By commanding to print
a certain selected record and stop the printer (BJC2100)
from continously retrieve the long cash register paper?
Just like the supermarket cash register. Thxs.
 
S

SA

Jack:

Yes, you can do this. Normally the easiest way to do this is to use Access'
built in functions "Open" and either "Print" or "Put" to open the LPT port
for output and send characters to the printer using the printer's escape
sequences. When you use the Open statement, specify the lpt port with out
the standard colon as in "LPT1". It then treats the port like a file
resource that you can write to. Consult the printer's manual regarding the
escape sequences to use. Most printers will use Chr(13) & Chr(10) for a
line fee. You normally preceed an escape sequence by using Chr(27). Do a
google search on printing to LPT ports and you should find example code.
 
Top