Click here to Skip to main content
14,326,574 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hi guys, I need some help or direction in approaching this issue i have on hand. Recently, i was able to print the winform as shown below.
However, i now wish to be able to print only the contents which means i do not want the borders and the button to be present in the final document. Is there any way to approach this problem?
Any help is very much appreciated.

What I have tried:

Imgur: The magic of the Internet[^]
Posted
Updated 15-Nov-18 22:02pm

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Then you need to use a PrintDocument class instance: PrintDocument Class (System.Drawing.Printing) | Microsoft Docs[^] It gives you full control over what is printed, where, and how it appears.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100