机器是斑马(zebra),狐表有什么方式进行打印呢?
专业报表是生成这个表,但是如何发送到标签打印机?可以引用codesofe的LabelManager2.dll?
下面的代码需要改改哪里的么?
- Imports LabelManager2
-
- Public Class Form1
-
- Public lbl As LabelManager2.Application
- Dim strFile As String
- Dim doc As Document
- Dim portNames As String()
-
-
- Private Sub btPrint_Click(sender As Object, e As EventArgs) Handles btPrint.Click
-
- doc.Variables.FreeVariables.Item("变量0").Value = tbSn.Text
-
- doc.PrintLabel(1, 1, 1, 1, 1, "")
- doc.FormFeed()
-
- End Sub
-
- Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
-
- lbl = New LabelManager2.Application()
- strFile = System.Windows.Forms.Application.StartupPath.ToString() & "\S703.lab"
- lbl.Documents.Open(strFile, False)
-
- doc = lbl.ActiveDocument
- doc.Printer.SwitchTo("ZDesigner ZT410-300dpi ZPL", "USB001", True)
-
- End Sub
-
- Private Sub Form1_FormClosing(sender As Object, e As FormClosingEventArgs) Handles MyBase.FormClosing
-
- Try
- lbl.Documents.CloseAll(False)
- lbl.Quit()
- Catch
-
- End Try
-
- End Sub
-
- End Class