コード例 #1
0
 public void DoPrintOrder(PrintData printData)
 {
     if (printData != null)
     {
         _printLayoutPath = _printOrderLayoutPath;
         _printData       = printData;
         try
         {
             _printHelper.Open();
             _printHelper.SetPrinterInit();
             DrawPaper();
             _printHelper.CutPaper();
         }
         catch (Exception exception)
         {
             LogHelper.GetInstance().Error("InstructionOrderPrint.DoPrintOrder error.", exception);
         }
         finally
         {
             _printHelper.Close();
         }
     }
 }