D
D
Drottarutarnum2020-09-23 18:17:02
C++ / C#
Drottarutarnum, 2020-09-23 18:17:02

How to improve the quality on a thermal printer?

Sending a picture to a thermal printer for printing
. Mercury pixel font is used.

But for some reason it "sags", you can see places where the line completely disappears, some words accidentally become bold, what's the matter?

On a normal printer, there is no such problem.

Through another program (purchased), everything prints well

5f6b6689c86ef470819310.png

dсocument.PrintController = controller;
dсocument.DefaultPageSettings.Margins = new Margins(0, 0, 0, 0);
dсocument.PrinterSettings.DefaultPageSettings.Margins = new Margins(0, 0, 0, 0);
dсocument.DefaultPageSettings.PrinterResolution.Kind = PrinterResolutionKind.High;
dсocument.PrintPage += PrintPageHandler;


private void PrintPageHandler(object sender, PrintPageEventArgs args) {
            var size = args.MarginBounds;
            var page = pageList[0];

            var image = CreatePageImage(page, size.Width, size.Height);

            args.Graphics.DrawImage(image, size);
        }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2020-09-23
@vabka

Sounds like a problem with the thermal printer itself. Try other fonts

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question