Click here to Skip to main content
13,050,764 members (75,357 online)
Rate this:
Please Sign up or sign in to vote.
See more:
What is the essential code in making printdocument? Because I want to print all labels,textbox, and picturebox inside the form1
Posted 2-Mar-12 3:27am
SAKryukov 2-Mar-12 9:34am
And where is you MDSN, broken?
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

How you could guess if you tried, the essential code sample is placed on exact same page as the MSDN documentation on this class:[^].

Good luck,
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

If you just want to print the form content (and I wouldn't, myself becasue it will look really ugly), you could use the PrintForm class:[^] - there is an example at the bottom.

If you use a PrintDocument, it is a little more complex, but there is an easy to follow example at the bootom of the class infor page in MSDN:[^]

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170713.1 | Last Updated 2 Mar 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

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