【发布时间】:2015-10-17 03:51:02
【问题描述】:
我想使用蓝牙打印机 (Zebra) 从 MC75 [Windows mobile 6] 打印包含文本的收据。
我有这样的代码:工作正常。但我想改变我的打印格式
Private Sub SendZplOverBluetooth(ByVal theBtMacAddress As [String])
Try
Dim thePrinterConn As ZebraPrinterConnection = New BluetoothPrinterConnection(theBtMacAddress)
thePrinterConn.Open()
Dim zplData As [String] = "^XA^FO50,20^A0N,25,25^FD TestData.^FS^XZ"
thePrinterConn.Write(Encoding.[Default].GetBytes(zplData))
Thread.Sleep(500)
thePrinterConn.Close()
Catch e As Exception
MsgBox("Error " & e.Message)
End Try
End Sub
这将打印“TestData”。我想让我的打印格式是这样的:
Event Service
ONsite Delivery
StandNo:
ITEM Quantity
-------------------------
AB 1
BC 2
---------Nothing-----------
all goods are received
---------------------
Date :
那么我该如何为此编写代码呢?感谢您的即时帮助。
提前致谢
【问题讨论】:
标签: c# vb.net windows-mobile zebra-printers