示例#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));
 }