I have a barcode label printer connected locally via a serial port. I have VB code (in an Access database) that sends ASCII commands directly to this printer to print labels. Such as…
OPEN “COM1:9600,n,8,1” FOR OUTPUT AS #1
PRINT #1, CHR$(27); “T”;
PRINT #1, “HELLO WORLD”
CLOSE #1
The printer in also Ethernet capable so the IT guys now want to put it on the network (i.e. assigning it an IP address).
My question is this… how do I now communicate with the printer to send the ASCII commands? Is VB capable of opening a TCP/IP port the same way it opens the COM (serial) port in my above code?
The limitation that I have is that the users of the database only have the standard Office and Access packages (so they would not have the ability to use the Winsock control).
Any help would be appreciated.
OPEN “COM1:9600,n,8,1” FOR OUTPUT AS #1
PRINT #1, CHR$(27); “T”;
PRINT #1, “HELLO WORLD”
CLOSE #1
The printer in also Ethernet capable so the IT guys now want to put it on the network (i.e. assigning it an IP address).
My question is this… how do I now communicate with the printer to send the ASCII commands? Is VB capable of opening a TCP/IP port the same way it opens the COM (serial) port in my above code?
The limitation that I have is that the users of the database only have the standard Office and Access packages (so they would not have the ability to use the Winsock control).
Any help would be appreciated.