Printer Control Characters

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am sending a report to a dot matrix printek printer. This printer has 3
tractors that hold forms. How do I send a control sequence down to the
printer to tell it which tractor to go to?

Any advice is GREATLY appreciated!!!! :)

Janis in Minne SNOW-ta :)
 
If you know what the control characters are, and assuming the printer is
connected to the parallel port on your local machine, then you would code
like so (my example will send the Form Feed character):

Dim iFileNo As Integer

iFileNo = FreeFile
Open "LPT1" For Binary As iFileNo
Put #iFileNo, , Chr(12)
Close #iFileNo
 
Back
Top