Wireless Communication Library Support Forum
Frameworks => Bluetooth Framework => Topic started by: Cirujano on February 07, 2011, 10:15:54 PM
-
I use the microsoft generic driver and for print i use this lines:
Dim s As String
s = Chr$(27) + "P$" + Chr$(27) + "PP" + vbCrLf + "BeginPage();" + vbCrLf
Dim arr() As Byte
arr = StrConv(s, vbFromUnicode)
resp = wclClient.Write(arr)
I tried to read the prints errors with this:
But nothing...
Private Sub wclClient_OnData(ByVal Buffer As Variant)
printerStatus.Caption = Buffer
End Sub
-
Hi,
I don't know what is "print error" but string data can be read as the following
Private Sub wclClient_OnData(ByVal Buffer As Variant)
Dim s As String
s = StrConv(Buffer, vbUnicode)
meAns.Text = meAns.Text + s
End Sub
Of course, Buffer must contain UNICODE string.
-
Thanks mike.