Ejemplo n.º 1
0
        /// <summary>
        /// 处理直接网络打印字体大小
        /// </summary>
        protected void handleIPPrinterFormat(PrinterFormat format)
        {
            format.PaperSize *= 2;

            format.ReciptBigFontSize   = format.ReciptBigFontSize * 2 + 1;
            format.ReciptFontSize      = format.ReciptFontSize * 2 + 1;
            format.ReciptSmallFontSize = format.ReciptSmallFontSize * 2 + 1;

            format.KitchenOrderFontSize      = format.KitchenOrderFontSize * 2 + 1;
            format.KitchenOrderSmallFontSize = format.KitchenOrderSmallFontSize * 2 + 1;

            format.ServeOrderFontSize      = format.ServeOrderFontSize * 2 + 1;
            format.ServeOrderSmallFontSize = format.ServeOrderSmallFontSize * 2 + 1;

            format.ShiftBigFontSize   = format.ShiftBigFontSize * 2 + 1;
            format.ShiftFontSize      = format.ShiftFontSize * 2 + 1;
            format.ShiftSmallFontSize = format.ShiftSmallFontSize * 2 + 1;
        }
Ejemplo n.º 2
0
 protected Printer(PrinterFormat printerFormat)
 {
     this.printerFormat = printerFormat;
 }
Ejemplo n.º 3
0
 public void SetFormat(PrinterFormat format)
 {
     this.printerFormat = format;
 }
Ejemplo n.º 4
0
 public ProductLabelsContainer(ProductLabel[] productLabels, PrinterFormat format = PrinterFormat.AVERY_J8159)
 {
     Format        = format.ToString();
     ProductLabels = productLabels;
 }