In Excel...
I collect data through a serial port and paste it to a worksheet. I also send the data to a printer so there is a hard copy (department of redundancy department). This works if the printer is connected to a parallel port. Does anyone know how to send a string to a USB printer?
Parallel port code looks like this:
Open "LPT1:" for output as #1
Print #1, DataStr
The printer sits quietly until a sheet has been filled up and then spits out the sheet. When data collection is complete:
Print #1, chr(10)
Close #1
The last (incomplete) sheet is flushed from the printer.
Parallel port printers are going the way of serial ports. I cannot get "Ne01" or "DOT4_001" or "USB001" or any variation of a USB port name to work. Any help would be appreciated.
I collect data through a serial port and paste it to a worksheet. I also send the data to a printer so there is a hard copy (department of redundancy department). This works if the printer is connected to a parallel port. Does anyone know how to send a string to a USB printer?
Parallel port code looks like this:
Open "LPT1:" for output as #1
Print #1, DataStr
The printer sits quietly until a sheet has been filled up and then spits out the sheet. When data collection is complete:
Print #1, chr(10)
Close #1
The last (incomplete) sheet is flushed from the printer.
Parallel port printers are going the way of serial ports. I cannot get "Ne01" or "DOT4_001" or "USB001" or any variation of a USB port name to work. Any help would be appreciated.