473,386 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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

Thank you for your help,
Gilbert
Sep 22 '08 #1
2 6499
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.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
Sep 22 '08 #2
Thank you,
Gilbert

"kimiraikkonen" <ki*************@gmail.coma écrit dans le message de news:
77**********************************...oglegroups.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.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
Sep 22 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mullin Yu | last post by:
I can create an image object with a string printed on it. But, how I can rotate the whole image 270 degree clockwise static public Bitmap createSerial() { Graphics objGraphics; string...
1
by: Leo | last post by:
I would like to rotate text and draw it starting from certain location, say (10, 20). The problem for me is that it does rotate, but it never draws the text from (10, 20). Will you please tell me...
3
by: Chris | last post by:
Hi, Is it possible to rotate a control on a form ? (e.g. Button, customcontrol) thnx Christian
2
by: Peter Proost | last post by:
Hi group, I got the following piece of code which draws a square with stars round it, now I want the stars to rotate round the square, I can do this with the mx.rotate and a timer and an...
1
by: iwdu15 | last post by:
hi, im trying to rotate a gdi drawn object on my form with a keypress....forinstance when i push the down arrow, for it to rotate the object drawn until the top is down, or if i push the right...
3
by: Eduard Witteveen | last post by:
Hello list, I have code the draw MyDrawingObject information on a System.Drawing.Graphics object. The code is more/less the following: I now want to rotate / mirror the object i draw. I've...
5
by: Gina_Marano | last post by:
Hey All, Is it possible to draw an image upside down? I am using Microsofts example of "Printing a local report without preview". The only trick is that I want to flip the image upside...
13
by: =?Utf-8?B?dmlubw==?= | last post by:
Hello, I have created my proper control and i would to rotate it. In the paint event of my object, i have written : Dim graph As Graphics = myObject.CreateGraphics myMatrix = New...
0
by: VicJ | last post by:
I'm trying to make a control on which the user can freely drag an image with the mouse and zoom and rotate it with the mouse wheel. I'd like to do this as far as possible using graphics transforms....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.