Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to Print data from a Panel Control using windows Form C#
Posted
Updated 18-Feb-14 15:14pm
v2
Comments
Sergey Alexandrovich Kryukov 18-Feb-14 21:14pm    
What have you tried so far?
—SA

1 solution

You can use the class System.Drawing.Printing.PrintDocument:
http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument%28v=vs.110%29.aspx[^].

Some pretty good code sample can be found at the end of this MDSN article.

If you can, for a data source for your print, try to use data used to render your UI, not the UI itself.

—SA
 
Share this answer
 
Comments
krishna97 18-Feb-14 21:24pm    
My question is How to Print data from a Panel Control using windows Form C#
and your answer is Take the Path from drive then print...??

Button Click Show the data from Panal Control and Print Button Click to Panel data all can Print it
Sergey Alexandrovich Kryukov 18-Feb-14 21:54pm    
No, that wasn't my answer. Try again... :-)
With this level of attention, you won't be able to do anything at all. And your account collected good number of abuse reports. Do you have an idea why?
—SA

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900