title: Printing Label in windows form application
body: <p>I am developing a windows form application. In this application I am using one panel which contains many labels. They are having property of drag and drop. The user will drag and drop the labels where he want. 
  Finally when he click on print button then it has to print.</p>
  
  <p>But I am using list of labels.I am getting blank sheet.</p>
  
  <pre><code> private void printDocument1_PrintPage(object sender,
  System.Drawing.Printing.PrintPageEventArgs e)
          {
              List&lt;Label&gt; lbls = this.Controls.OfType&lt;Label&gt;().ToList();
              foreach (var lbl in lbls)
              {
                  e.Graphics.DrawString(lbl.Text,
               new Font(comboBox1.SelectedItem.ToString(), Int32.Parse(comboBox2.SelectedItem.ToString()), FontStyle.Bold), Brushes.Black, lbl.Left, lbl.Top);
              }
  </code></pre>