Cut paper

Stimulsoft Reports.NET discussion
Post Reply
Nuria
Posts: 9
Joined: Wed Sep 27, 2017 2:27 pm

Cut paper

Post by Nuria »

Hello
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");
The escape code is 'ESC'i and in the report I put a text <#cut> but it does not cut me.

What do I do wrong?
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Cut paper

Post by HighAley »

Hello.

Your code seems to be right.
Please, send your report template with data or a rendered report that will help us to reproduce the issue.

Thank you.
Post Reply