I am trying to send data to the LPT port for a label printer.
I am using VB.NET-VS2005
I have tried several things and none of them are working, and am running out of forums to ask.
The following is what I have tried:
FileOpen(1, "LPT1", OpenMode.Output)
--Got an error about tape drives and other devices and not to use
FileOpen(1, "C:\TEMP\label.txt", OpenMode.Output)
Shell("C:\Windows\System32\Command.com Copy C:\TEMP\Label.txt LPT1:")
This created a file, but I need to copy it to the LPT port.
THe copy command works through windows command window,
but fails with the shell command in VB.NET.
I am in need of a solution, I have been searching the internet all day for a solution.
Any help would be greatly appreciated.