Cara kirim data lewat lan ipAddress dan port
Dim ipAddress
As String = "10.3.14.59"
Dim port As Integer = 9100
Dim ZPLString
As String = _
"^XA"
& _
"^FO50,50"
& _
"^A0N,50,50"
& _
"^FDHello,
World!^FS" & _
"^XZ"
Try
'Open
Connection
Dim
client As New System.Net.Sockets.TcpClient
client.Connect(ipAddress,
port)
'Write
ZPL String to Connection
Dim
writer As New
System.IO.StreamWriter(client.GetStream())
writer.Write(ZPLString)
writer.Flush()
'Close
Connection
writer.Close()
client.Close()
Catch ex As Exception
'Catch
Exception Here
End Try