public void Execute(PosPrinter printer, PrinterStation station) { if (!printer.CapRecPaperCut && station == PrinterStation.Receipt) { return; } printer.PrintNormal(station, EscapeSequence.FeedAndPaperCut(PercentCut)); }
public void Execute(PosPrinter printer, PrinterStation station) { if (!printer.CapRecBitmap && station == PrinterStation.Receipt || !printer.CapSlpBitmap && station == PrinterStation.Slip) { return; } printer.PrintNormal(station, EscapeSequence.PrintBitmap(BitmapNumber)); }
public override string ToString() { var sb = new StringBuilder(Text?.Length ?? 10); switch (Alignment) { case Alignment.Center: sb.Append(EscapeSequence.Center); break; case Alignment.Left: sb.Append(EscapeSequence.Left); break; case Alignment.Right: sb.Append(EscapeSequence.Right); break; } if (IsBold) { sb.Append(EscapeSequence.Bold()); } if (IsUnderline) { sb.Append(EscapeSequence.Underline()); } if (IsItalic) { sb.Append(EscapeSequence.Italic()); } sb.AppendLine(Text); return(sb.ToString()); }
public void Execute(PosPrinter printer) { printer.Print(EscapeSequence.FeedUnits(Units)); }
public void Execute(PosPrinter printer, PrinterStation station) { printer.PrintNormal(station, EscapeSequence.FeedReverse(Lines)); }
public void Execute(PosPrinter printer) { printer.Print(EscapeSequence.PaperCut(PercentCut)); }
public void Execute(PosPrinter printer, PrinterStation station) { printer.PrintNormal(station, EscapeSequence.FeedUnits(Units)); }
public void Execute(PosPrinter printer) { printer.Print(EscapeSequence.PrintBitmap(BitmapNumber)); }
public void Execute(PosPrinter printer) { printer.Print(EscapeSequence.FeedReverse(Lines)); }
public void Execute(PosPrinter printer) { printer.Print(EscapeSequence.FeedCutAndStamp(PercentCut)); }