Printing in C#
Welcome to Printing section of C# Corner. In this section, you will find various Printing related source code samples, articles, tutorials, and tips.


  • How To Print a DataGrid in C# and .NET

    I wrote this article in response to the question, How the heck do I print out a DataGrid and its contents. n order to encapsulate the drawing of the DataGridPrinter to the Printer, I created the Da...
  • Printing Windows Form in C#

    This article shows how to print a Windows Forms in C# at run-time.
  • How To Print Part of the page in C#

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

    This sample shows you how to print a text box contents in C# and .NET.
  • Printing Text File 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.
  • Print in C#

    Here is a good list of resource related to printing in C# using GDI+.
  • Printing in WPF

    In this article, you will learn how to print the controls of a form & also the whole form all controls.
  • Print the Controls of the Window Form

    This article will show you how you can print all the controls of a Window Form.
  • Print the Window Form & Print the Image of Picture Box

    In this article you will learn how to print a Windows Forms form & how to print the image of a Picture box.
  • Load XML File Data in DataGridView & Print DataGridView Data

    Using this article you can understand how to load the XML file's record into the DataGridView & then you can print that DataGridView.
  • Print the Selected XML Record

    Using this code you will know that how to print the selected XML record.
  • Creating a Printing Application using Windows Forms and C#

    This article talks about how to create a simple printing application in C# using GDI+.
  • Using GDI to Print in C#

    In this article you will learn how to use unmanaged printing library GDI to print from C#.
  • Printing Multiple Pages in C#

    In this article you will learn how to print multiple pages in C# using GDI+.
  • Word Processing with an Extended Rich Text Box Control

    This article describes an easy approach to building a simple word processor around an extended version of the Rich Text Box (RTB) control.
  • Managing printing in Windows Applications

    This article describes the basics of enabling printing in windows application using C# and .net 2.0.
  • Windows Forms Printer Selection List

    In this example we will create a sample windows form containing a combo box which will list the printers installed on the machine on which the program runs. The default printer for the machine is s...
  • Gym Exercise Tracker in C# and .NET - Printing the DataGridView

    This article demonstrates an Exercise Tracking Program in C# that you can use to track your daily exercises. It uses the DataGridView and an Access Database to display exercise data. The program ...
  • Filling out your 1040EZ Tax Form in .NET

    Since the 1040EZ form is only a single page, I thought it would be fun to create a Window Form application that helped into the form. This program will allow you to fill out most of the fields and...
  • Part I: Simple Color Syntax Code Editor for PHP written in C# and .NET

    The second part of this article shows how to print out the contents of a RichTextBox control.
  • How To: Printing Form Controls in C# and .NET

    The other day a user asked me how to print out a form. I suggested they use my Form Capture article which catches the bitmap that the form is in by using bit belting commands from the old windows S...
  • Editable GridView Control in C# and .NET - Part-III Printing the GridView

    In our last two articles, we talked about how to create an editable GridView and how to make it persistent in XML.
  • Using Management Objects to check Online Printers

    This article shows to check online printers using management objects.
  • Printing out your W2 Form using C# and .NET

    This article covers a fairly practical aspect of using a computer - dealing with forms.
  • Printing a Ruler using C# and GDI+

    If you misplaced your ruler, here's an application that will create one for you on your printer!