Panel Print to Printer

caution021

Member
Joined
Dec 16, 2011
Messages
5
Programming Experience
Beginner
If someone could help me print all the content inside my panel, and can i preview it before printing? sorry for a noob question.

Your help would be greatly appreciated.
 
What is actually in your Panel? Is it really appropriate to print the Panel, or would it be more appropriate to print just the data that is displayed?
The Panel contains Picturebox and some Labels. I am trying to print the image on the 2 Picturebox and put some Labels inside the Picturebox and they are inside the Panel.
 
You should probably just be using standard .NET printing, i.e. create a PrintDocument, call its Print method and handle its PrintPage event. In the event handler, you call DrawImage for the PictureBoxes and DrawString for the Labels. There are various tutorials about printing specifically and GDI+ in general about. You might like to start here:

A beginner's guide to printing in .NET
 
Back
Top