SIGN UP MEMBER LOGIN:    
ARTICLE

Print in C#

Posted by Mahesh Chand Articles | Printing in C# December 12, 2011
Here is a good list of resource related to printing in C# using GDI+.
Reader Level:

So you want to learn how to do printing using C#. Here is your complete guide. 

There are four kinds of applications you can build using C# that may require printing.

  • Windows Forms Application
  • ASP.NET Web Application
  • WPF Application
  • Silverlight Application

The printing process in all these four different types of application works in four separate ways.

In a Windows Forms application, you need GDI+ API to print. This includes printing text, images, user interfaces and partial forms. Here are some good resources on this topic.

Printing in ASP.NET is similar to printing Windows Forms but Web can't really render pixels so you need to convert drawings into an image and display the image. Here is a good resource on this topic.

WPF and Silverlight provide a printing APIs.

There are many more resource on C# Corner on printing. Check out this section:

Printing in C#

Check out this free complete book on Printing

Printing in C# Made Easy


Login to add your contents and source code to this article
share this article :
post comment
 

Hello, I need your kind help. I have 1 task in Printing a winform's values. Client has given already printed paper with blank value. these values i need to fill in paper while printing. Pls give me code that can print only values at specific locations. that would be better if this can be possible directly from Current form or using Report Viewer. pls help me in this with code.

Posted by rikin shah May 12, 2012

Hello, I need your kind help. I have 1 task in Printing a winform's values. Client has given already printed paper with blank value. these values i need to fill in paper while printing. Pls give me code that can print only values at specific locations. that would be better if this can be possible directly from Current form or using Report Viewer. pls help me in this with code.

Posted by rikin shah May 12, 2012
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor
PREMIUM SPONSORS
  • Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
    The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
Become a Sponsor