We have a LS agent that prints to LPT1 (a parallel attached printer) and now need to print to a local USB attached printer. The port the OS assigned is DOT4_001. Sample code below:
Open “LPT1:” For Output As #hPrt
For x = 1 To 3
Print #hPrt, Chr(13) + Chr(10) + “testing the printing”+ Chr(13) + Chr(10) + _
“2nd line of printing”
Print #hPrt, “another line” + Chr(12)
outc = outc + 1
Next
Close #hPrt
Exit Sub
we changed the LPT1: to DOT4_001 and although there were no errors nothing printed or was queued.
In reading here we tried installing the microsoft loopback adapter and issueing the net use lpt1: \local\printer statement but get access denied …
Does anyone have any ideas how we can use the LS “print” statement to a local USB printer? … thanks …