LS Open "lpt1:" now needs to print to local USB

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 …

Subject: Looks like the loopback option is the right one…

Can you print from a DOS window. Get that working and LotusScript should work.

Lots of info here.

Subject: RE: Looks like the loopback option is the right one…

thank you for your reply and agree that if I can print from a DOS window it would work … but as I try to issue the NET USE LPT1: I continue getting Access Denied ?? … am now thinking I need to rethink my print statements and redo the agent(s) (I have a few of them) to send output to the printer another way …