using System;
using System.Drawing.Printing;
using System.Windows.Forms;
namespace Smt.Zebra.WinForm
{
public partial class ZebraWinForm : Form
{
public ZebraWinForm()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
try
{
//调用打印接口方法
ZebraPrinter _printer = new ZebraPrinter();
_printer.PrintLabEx(textBox2.Text);
// _printer.PrintLabEx(textBox2.Text, "MaterialBarCode");
// _printer.PrintLabEx(textBox2.Text, "MaterialBarCode", "ZDesigner ZT410R-203dpi ZPL","1");
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
private void Smt_Zebra_WinForm_ZPL_Load(object sender, EventArgs e)
{
}
private void textBox2_TextChanged(object sender, EventArgs e)
{
}
}
}