0
You can do this using Printdocument. The _Printpage event of the Printdocument object has as parameter Printpageeventargs that makes it possible to draw Strings and Lines in your document for printing.
To write Strings to the document for printing use:
e.Graphics.DrawString(string S, font Font, Brush brush, PointF point);
To draw lines use:
e.Graphics.DrawLine(Pen pen, Point pt1, Point pt2);
I recommend reading the following articles: How to print documents - Macoratti: http://www.macoratti.net/09/09/c_prn1.htm
How to print documents - MSDN: https://docs.microsoft.com/pt-br/dotnet/api/system.drawing.printing.printdocument.print?view=dotnet-plat-ext-3.1
Drawline MSDN function: https://docs.microsoft.com/pt-br/dotnet/api/system.drawing.graphics.drawline?view=dotnet-plat-ext-3.1
David, thank you so much for your help. Hug.
– Ednilson Teixeira