Results 1 to 2 of 2

Thread: Font with printing

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2004
    Posts
    5

    Font with printing

    I use the following code for printing some text to a print.

    e.Graphics.DrawString("Purchase Order", Me.Font, New SolidBrush(Color.Black), 25, 200)

    In this example the fonts are used of the fonts used in Form.

    Hoe can I change this code, or build something around it, to use another font with some other style (like bold or italic)?

    Hope someone can explain it to me.

    -Ries-

  2. #2
    Addicted Member Hole-In-One's Avatar
    Join Date
    Mar 2003
    Location
    Minnesota
    Posts
    195
    Not at my computer right now but this will get you close:

    e.Graphics.DrawString("Purchase Order", New Font("Arial",Fontsyle.Bold), New SolidBrush(Color.Black), 25, 200)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width