Ejemplo n.º 1
0
 /// <summary>
 /// 打印按钮
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnPrint_Click(object sender, EventArgs e)
 {
     if (String.IsNullOrEmpty(_fileName))
     {
         MessageBox.Show("请先选择文件!");
     }
     else
     {
         PrintManager pManager = new PrintManager(_printDataList);
         pManager.DoPrint(_fileName);
     }
 }
Ejemplo n.º 2
0
        private void btnPrintAll_Click(object sender, EventArgs e)
        {
            List <BarCodeBean> printDataList = GetPrintData(_allDataList);

            if (printDataList.Count > 0)
            {
                PrintManager pManager = new PrintManager(printDataList);
                pManager.DoPrint(_fileName);
            }
            else
            {
                MessageBox.Show("未选择打印内容!");
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 /// 打印按钮点击事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnPrint_Click(object sender, EventArgs e)
 {
     if (_printDataList.Count > 0)
     {
         string       fileName = _printDataList.FirstOrDefault().BarcodeId;
         PrintManager pManager = new PrintManager(_printDataList);
         pManager.DoPrint(fileName + "(" + _printStart.ToString() + "_" + _printEnd.ToString() + ")");
         SetPrintStartAndEnd();
     }
     else
     {
         MessageBox.Show("没有需要打印标签!");
     }
 }