We have a Zebra QLn420 label printer and I am writing a .Net application to allow the user to scan an item, process it through our system, create a shipping label, then send it in a .ZPL file to the Zebra label printer. Where I'm running into trouble is getting the VB.Net application connected to the Zebra label printer.
The application is run on a wearable Motorola WT41N0 wearable terminal, and the terminal is connected to the printer through Bluetooth. I can see on the terminal the two devices are indeed connected, the port it is connected through (COM9), and the baud rate (57600).
This is a new experience for me, so forgive me for missing anything obvious, but here is the code I am currently using to connect.
Try PrinterSerial = New IO.Ports.SerialPort(Portname, 57600, IO.Ports.Parity.None, 8, IO.Ports.StopBits.One) AddHandler PrinterSerial.DataReceived, AddressOf getPrinterSerialData PrinterSerial.Open() Catch ex as Exception MsgBox(ex.tostring) End Try
The error is occurring on the PrinterSerial.Open() line with the error "The port 'COM9' does not exist.'
Any suggestions or thoughts would be very helpful. Thank you!