String formating issue

jvencl

New member
Joined
Sep 8, 2005
Messages
2
Location
Clevleand, OH
Programming Experience
3-5
I am formatting a string to put onto a report. The string needs to be vertical because it is displaying a Height value. I dim a format and set a formatflag of .directionvertical like this ...

Dim format As New StringFormat
format.FormatFlags = StringFormatFlags.DirectionVertical

The issue is that the string is facing the worng way on the report. (i.e. the bottom of a 2 faces the left edge of the paper instead of the right edge). There are no extra parameters to pass into this property. Does anyone have any ideas?

I know it's not the biggest issue in the world, but still an issue. :p
 
How are you using the StringFormat, as a parameter of the System.Drawing.Graphics.DrawString method or in a different manner?
If you are using the DrawString method of the Graphics class, you could use the System.Drawing.Graphics.RotateTransform method to rotate the graphics object 180 degrees then draw the string.
 
Back
Top