SHASHANGKA SHEKHAR'S BLOG

Hi, I am Shashangka Shekhar, Working with Microsoft Technologies. This is my personal blog where I share some of my experiences.

Windows Form Printing Service

Today we are going to focus on printing from Windows Form application silently to the printer using C# graphics object. Graphics objects are defined from:

  • Namespace: System.Drawing
  • Assembly: System.Drawing.dll

Get More on Graphics Class

Let’s get started by creating a new sample windows form application. Here is how we have structured the application.

Form:

Models:

Data:

Print:

Print Templating:

OutPut:

Source Code: I’ve uploaded the full source code to download/clone @github, Hope this will help 🙂

References:

  • http://www.c-sharpcorner.com/uploadfile/mahesh/printpreviewcontrol-in-C-Sharp/
  • http://www.techotopia.com/index.php/Drawing_Graphics_in_C_Sharp
  • https://docs.microsoft.com/en-us/dotnet/framework/winforms/advanced/how-to-create-graphics-objects-for-drawing

Post a comment