print bold

Apr 12 2011 1:13 PM


  how we use "bold" property of font ,when we printing a label value?

private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)

        {

            foreach (Control t in this.Controls)

            {

                if (t is Label)

 {

 

       {

              e.Graphics.DrawString(t.Text, myfont, Brushes.Black, t.Left + 10, t.Top + 10);

              }                    

                   

  

                       }


Answers (2)