public void StartPrintMany(IDrawLabel drawLabel) { foreach (GoodsBarcodeInfo info in GoodsBarcodeList) { PrintGoods(drawLabel, info); } }
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(); }
public GlassGoodsPrintDocument(GoodsBarcodeInfo goodsBarcodeInfo, IDrawLabel drawLabel) { CurrentGoodsBarcodeInfo = goodsBarcodeInfo; DrawLabel = drawLabel; }
public void SetLabelLocation(IDrawLabel drawNeighborLabel) { this._drawNeighborLabel = drawNeighborLabel; }