예제 #1
0
 public void StartPrintMany(IDrawLabel drawLabel)
 {
     foreach (GoodsBarcodeInfo info in GoodsBarcodeList)
     {
         PrintGoods(drawLabel, info);
     }
 }
예제 #2
0
        public void PrintGoods(IDrawLabel drawLabel, GoodsBarcodeInfo goods)
        {
            var document = new GlassGoodsPrintDocument(goods, drawLabel)
            {
                PrinterSettings = { PrinterName = PrinterName }
            };
            PrintController printController = new StandardPrintController();

            document.PrintController = printController;
            document.PrintPage      += Print_PrintPage;
            document.Print();
        }
예제 #3
0
 public GlassGoodsPrintDocument(GoodsBarcodeInfo goodsBarcodeInfo, IDrawLabel drawLabel)
 {
     CurrentGoodsBarcodeInfo = goodsBarcodeInfo;
     DrawLabel = drawLabel;
 }
 public void SetLabelLocation(IDrawLabel drawNeighborLabel)
 {
     this._drawNeighborLabel = drawNeighborLabel;
 }