Printing data directly to the printer

  • Thread starter Thread starter Bruce
  • Start date Start date
B

Bruce

I have a receipt printer that controls a cash drawer.
The receipt printer uses a control code sequence that
causes the cash drawer to open. I need to know how to
print the control code sequence directly to the printer
without the formality of a report form. It seems to me
this should be a rather simple thing to do, but I am
unable to figure it out. I am using Access 2002 to
develop the application and need to know how to code VBA
to allow me to print the control sequence directly to the
printer.

Any help on this matter will be greatly appreciated.

Thanks,
Bruce.
 
Try the Open statement (if you can open the printer as a device). Then use
Print, Print# (or whatever it is) to send the codes. Sending chr$(27), for
example, would send an escape character.

HTH,
TC
 
Is it a Serial or Parallel Printer.


TC said:
Try the Open statement (if you can open the printer as a device). Then use
Print, Print# (or whatever it is) to send the codes. Sending chr$(27), for
example, would send an escape character.

HTH,
TC
 
It is a parallel printer, and I don't know how to open it
using the open statement. Can someone give an example?

Thanks,
Bruce
 
I was beginning to follow the flow of this thread, but seem to get lost. So the question still remains of how to send data directly to a printer on a parallel connection. Let's say yopu want to send the following data:

Chr(10) & "N" & Chr(10)
"Q75,10+0" & Chr(10)
"Data Is On This Line"

Ok so what is the exact structure to send this setup instruction and data to the printer.

Your help is greatly appreciated
 
Back
Top