O'Reilly logo

Graphics Programming with GDI+ by Mahesh Chand

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

11.3. Your First Printing Application

We just saw how the printing process works in the .NET Framework. Now let’s talk about how to write your first simple printing application. In this application we will send the text “Hello Printer!” to the printer from a Windows application. To create this application, follow the simple steps described here.

Using Visual Studio .NET, create a Windows application project named HelloPrinterSamp, as shown in Figure 11.6.

Figure 11.6. Creating a Windows application

After we create the project, we add the following line to it:

using System.Drawing.Printing;

Then we add controls for a label, a combo box, and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required