Пример #1
0
 public void Reset()
 {
     printerSocket.Send(CommandFactory.CreateResetCommand());
 }
Пример #2
0
 public void Print(string text)
 {
     printerSocket.Send(CommandFactory.CreatePrintCommand(text));
 }
Пример #3
0
 /// <summary>
 /// Cuts the paper.
 /// </summary>
 /// <param name="feedCount">Feed count. CutPosition = CutPositon + (n*verticalmotionunits)</param>
 public void CutPaper(byte feedCount = 50)
 {
     printerSocket.Send(CommandFactory.CreateCutPaperCommand(feedCount));
 }
Пример #4
0
 public void FeedLines(byte lines)
 {
     printerSocket.Send(CommandFactory.CreateFeedLinesCommand(lines));
 }
Пример #5
0
 public void PrintLine(string text = "")
 {
     printerSocket.Send(CommandFactory.CreatePrintLineCommand(text));
 }
Пример #6
0
 public void RemoveBold()
 {
     printerSocket.Send(CommandFactory.CreateBoldCommand(false));
 }
Пример #7
0
 public void SetBold()
 {
     printerSocket.Send(CommandFactory.CreateBoldCommand());
 }
Пример #8
0
 public void RemoveUnderline()
 {
     printerSocket.Send(CommandFactory.CreateUnderlineCommand(0));
 }
Пример #9
0
 public void SetUnderline(bool thick = false)
 {
     printerSocket.Send(CommandFactory.CreateUnderlineCommand((byte)(thick ? 2 : 1)));
 }
Пример #10
0
 public void SetAlignment(PrintAlignment printAlignment)
 {
     printerSocket.Send(CommandFactory.CreateSetAlignmentCommand(printAlignment));
 }