Learn it from developers who built it.
Tutorials, how-tos and deep dives on AI, .NET, C#, cloud and developer tools, written by the community.

In this article we will see how to print a portion of a page in C#.

In this article, you will learn how to print a text file in C#. The attached project lets you browse and open a text file and print it to a printer.

Learn how to enable duplex printing in Micro Focus Visual COBOL for .NET using PrintDocument and PrinterSettings.

This article shows how to print from a Windows Forms form.

Create a simple C# Windows Forms printing application with GDI+, list installed printers, select a printer, and print text using PrintDocument.

Learn how to use the Windows Forms PrintDialog control with PrintDocument to select printer settings, choose page ranges, and print a document in C#.

Learn how to print the contents of a RichTextBox control in a WPF application.

Create a VB.NET Windows Forms ComboBox that lists installed printers and selects the machine's default printer.

The second part of this article shows how to print out the contents of a RichTextBox control.
Everything on Printing in C#, not only its articles: the Printing in C# page →
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyWrite an article and earn +1,000 SHARP when it is approved.
Write an article