print directly to the printer

  • Thread starter Thread starter Maverick
  • Start date Start date
Mav:

In VBA, what you do to print directly to the printer is use the Open and
Print (or put) statements. You open as a file the printer port as in:

PortOutput = FreeFile
Open "LPT1" For Binary Access Write As #PortOutput

Then use Put as in

Put #PortOutput, , Eval(YourStringVariableHere)

HTH
 
Back
Top