title: How to print the content of a panel with RadPrintPreview?
body: <p>i want print the content of panel with RadPrintPreview of telerik , but when i declare RadPrintDocument i cant associat this later with panel !
  this is my code :</p>
  
  <pre><code>private void doc_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
  {
  
          Bitmap bmp = new Bitmap(radPanel2.Width, radPanel2.Height, radPanel2.CreateGraphics());
          radPanel2.DrawToBitmap(bmp, new Rectangle(0, 0, radPanel2.Width, radPanel2.Height));
  
          RectangleF bounds = e.PageSettings.PrintableArea;
          e.Graphics.DrawImage(bmp, bounds.Left, bounds.Top, radPanel2.Width, radPanel2.Height);
  
  }
  private void btn_Imression_Click(object sender, EventArgs e)
  {
  
          System.Drawing.Printing.PrintDocument doc = new System.Drawing.Printing.PrintDocument();
          doc.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(doc_PrintPage);
          RadPrintPreviewDialog PrintSettings = new RadPrintPreviewDialog();
  
          PrintSettings.Document = doc;
          PageSettings pgsetting = new PageSettings();
  
          if (PrintSettings.ShowDialog() == DialogResult.OK)
              doc.Print();
  }
  </code></pre>
  
  <p>and thank's for help :)</p>