I have to cut the paper in thermal printer and I use this code
Code: Select all
var stiEscapeCodesCollection = new StiEscapeCodesCollection { { "cut" , "\x1B" + "\x69" } };
stiEscapeCodesCollection.Name = "EPSON";
StiOptions.Export.Txt.EscapeCodesCollectionList.Add(stiEscapeCodesCollection);
Report.Render(false);
Report.PrintToDotMatrixPrinter(PrinterName, System.Text.Encoding.GetEncoding(850), true, StiTxtBorderType.Simple, false, false, false, true, 1.45f, 1, 1, Report.RenderedPages.Count, true, "EPSON");
What do I do wrong?