使用兄弟SDK打印到兄弟网络共享打印机



我正在与 vb.net 一起开发使用兄弟打印机PT 98OOPCN打印条形码标签。我使用的是网络共享,而不是点对点。有我的代码

Dim objDoc As bpac.Document
objDoc = CreateObject("bpac.Document")
Dim PrinterName As String = "\hostprinterserverprinter1"
If (objDoc.Open("Label_BarcodeLabel_Ex.lbx")) Then
   objDoc.GetObject("dateObject").Text = "10/23/2012"
   objDoc.GetObject("barcodeObject").Text = "100123239734"
   objDoc.SetPrinter(PrinterName, True)
   objDoc.StartPrint("", PrintOptionConstants.bpoDefault)
   objDoc.PrintOut(1, PrintOptionConstants.bpoDefault)
   objDoc.EndPrint()
   objDoc.Close()  
End If

是否可以使用BrotherSDK打印到网络共享打印机?如果可能的话,怎么想?

Dim PrinterName As String = "printer1 on hostprinterserver'sIP"
For instance:
Dim PrinterName As String = "Brother PT-9600 on 192.168.1.45"

它对我有用!

最新更新