How to rotate a written string with e.graphics ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gilbert Tordeur

    #1

    How to rotate a written string with e.graphics ?

    Hello.

    Context : Windows Form, VB 2008.

    I am printing a document using a PrintDocument and e.Graphics.

    As some columns are narrow I would like to print their titles vertically,
    like in Excel with a rotation of 90°. I guess it is something related to
    Graphics.Rotate Transform and Graphics.Transl ateTransform but I do not
    understand anything in the documentation.

    Thank you for your help,
    Gilbert


  • kimiraikkonen

    #2
    Re: How to rotate a written string with e.graphics ?

    On Sep 22, 5:26 pm, "Gilbert Tordeur" <gilbert.tord.. .@orange.fr>
    wrote:
    Hello.
    >
    Context : Windows Form, VB 2008.
    >
    I am printing a document using a PrintDocument and e.Graphics.
    >
    As some columns are narrow I would like to print their titles vertically,
    like in Excel with a rotation of 90°. I guess it is something related to
    Graphics.Rotate Transform and Graphics.Transl ateTransform but I do not
    understand anything in the documentation.
    >
    Thank you for your help,
    Gilbert
    Check out these documentations on MSDN:
    http://msdn.microsoft.com/en-us/library/6a1d65f4.aspx
    http://msdn.microsoft.com/en-us/library/a0z3f662.aspx


    HTH,

    Onur Güzel

    Comment

    • Gilbert Tordeur

      #3
      Re: How to rotate a written string with e.graphics ?

      Thank you,
      Gilbert

      "kimiraikko nen" <kimiraikkonen8 5@gmail.coma écrit dans le message de news:
      7764bc05-c4b6-44be-a242-020fac5e8944...le groups.com...
      On Sep 22, 5:26 pm, "Gilbert Tordeur" <gilbert.tord.. .@orange.fr>
      wrote:
      Hello.
      >
      Context : Windows Form, VB 2008.
      >
      I am printing a document using a PrintDocument and e.Graphics.
      >
      As some columns are narrow I would like to print their titles vertically,
      like in Excel with a rotation of 90°. I guess it is something related to
      Graphics.Rotate Transform and Graphics.Transl ateTransform but I do not
      understand anything in the documentation.
      >
      Thank you for your help,
      Gilbert
      Check out these documentations on MSDN:
      http://msdn.microsoft.com/en-us/library/6a1d65f4.aspx
      http://msdn.microsoft.com/en-us/library/a0z3f662.aspx


      HTH,

      Onur Güzel


      Comment

      Working...