Beispiel #1
0
 public void Reset()
 {
     printerSocket.Send(CommandFactory.CreateResetCommand());
 }
Beispiel #2
0
 public void Print(string text)
 {
     printerSocket.Send(CommandFactory.CreatePrintCommand(text));
 }
Beispiel #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));
 }
Beispiel #4
0
 public void FeedLines(byte lines)
 {
     printerSocket.Send(CommandFactory.CreateFeedLinesCommand(lines));
 }
Beispiel #5
0
 public void PrintLine(string text = "")
 {
     printerSocket.Send(CommandFactory.CreatePrintLineCommand(text));
 }
Beispiel #6
0
 public void RemoveBold()
 {
     printerSocket.Send(CommandFactory.CreateBoldCommand(false));
 }
Beispiel #7
0
 public void SetBold()
 {
     printerSocket.Send(CommandFactory.CreateBoldCommand());
 }
Beispiel #8
0
 public void RemoveUnderline()
 {
     printerSocket.Send(CommandFactory.CreateUnderlineCommand(0));
 }
Beispiel #9
0
 public void SetUnderline(bool thick = false)
 {
     printerSocket.Send(CommandFactory.CreateUnderlineCommand((byte)(thick ? 2 : 1)));
 }
Beispiel #10
0
 public void SetAlignment(PrintAlignment printAlignment)
 {
     printerSocket.Send(CommandFactory.CreateSetAlignmentCommand(printAlignment));
 }