条码打印四 - 3.C#Zebra斑马打印机打印程序(支持文件类型TXT、LAB;支持打印接口COM、DRV、Excel、LabelManager2、LPT、TCP)Framwork2.0
Net Framework2.0 C# 桥接模式(抽象和实现分开) namespace Mes.Printing.Printers { /// <summary> /// Label Printer. /// </summary> public interface ILabelPrinter { /// <summary> /// Print label. /// </summary> /// <param name="labelContent">label content</param> /// <returns></returns> void BarCodePrint(string labelContent); } } View Code using System; namespace Mes.Printing.Printers { /// <summary> /// Base Printer Type. /// </summary> public abstract class BasePrinter : ILabelPrinter { #region Printer Name private string _PrinterName; /// <summary> /// Get or set printer name. /// </summary> public string