I would say this is a bad idea (print data, not UI), but if you really need something like this with
System.Windows.Forms.Panel
(which you did not specify, please see my comment to the question), you need to use the class
System.Drawing.Printing.PrintDocument
, see
http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.aspx[
^], see a code sample closer the end of this page.
—SA