How to rotate a written string with e.graphics ?

G

Gilbert Tordeur

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.RotateTransform and Graphics.TranslateTransform but I do not
understand anything in the documentation.

Thank you for your help,
Gilbert
 
K

kimiraikkonen

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.RotateTransform and Graphics.TranslateTransform 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
 
G

Gilbert Tordeur

Thank you,
Gilbert

"kimiraikkonen" <[email protected]> a écrit dans le message de (e-mail address removed)...
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.RotateTransform and Graphics.TranslateTransform 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top