0

I am developing with vb.net to print barcode label using Brother Printer PT 98OOPCN. I am using Network Shared, not Peer to Peer. There is my code

Dim objDoc As bpac.Document
objDoc = CreateObject("bpac.Document")
Dim PrinterName As String = "\\hostprinterserver\printer1"

If (objDoc.Open("Label_Barcode\Label_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

Is it possible to print with Brother SDK to Network Shared Printer? if it is possible how to do that think?

4

1 回答 1

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

它对我有用!

于 2013-06-19T18:34:10.403 回答