I am trying to work some final bugs out of a program we are using. The issue is that we have a receipt print out of LPT1 mapped to COM1 and the first receipt will print fine. However when we try to reprint the receipt it will sit in limbo until something else tries to print or we wait 15 seconds - 2 minutes for it to print. If we send another reprint command the first receipt waiting (second printed) will pop out and then we are waiting for the third receipt.
Code is attached below that shows the mapping. The program was written in house about 12 years ago ... may be time for a re-write if this can't be resolved.
If I do a Windows test print (generic drivers) everything prints fine through the printer as it should with no delays.
pkunzip -o update.zip
net use lpt1 /d
mode lpt1 = com1
mode com1: 9600,E,7,1
net use lpt1 \\DTCASH1\slip /persistent:no