How to rotate a written string with e.graphics ?

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

    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:
    Changes the origin of the coordinate system by prepending the specified translation to the transformation matrix of this Graphics.

    Applies the specified rotation to the transformation matrix of this Graphics.



    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:
      Changes the origin of the coordinate system by prepending the specified translation to the transformation matrix of this Graphics.

      Applies the specified rotation to the transformation matrix of this Graphics.



      HTH,

      Onur Güzel


      Comment

      Working...