Home All Groups Group Topic Archive Search About

Printing rotated text

Author
19 Apr 2006 7:46 AM
Tull Clancey
Does anyone have a solution for printing rotated text?  I can't rely on
changing the printer orientation.

Thanks,
Tull.

Author
19 Apr 2006 10:35 AM
Herfried K. Wagner [MVP]
"Tull Clancey" <tull.clan***@btopenworld.com> schrieb:
> Does anyone have a solution for printing rotated text?  I can't rely on
> changing the printer orientation.

Check out 'e.Graphics.RotateTransform'.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
19 Apr 2006 3:35 PM
Tull Clancey
You're probably right, can you please ellaborate?

Thanks,
Tull.

Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:%238VRI05YGHA.4620@TK2MSFTNGP04.phx.gbl...
> "Tull Clancey" <tull.clan***@btopenworld.com> schrieb:
>> Does anyone have a solution for printing rotated text?  I can't rely on
>> changing the printer orientation.
>
> Check out 'e.Graphics.RotateTransform'.
>
> --
> M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
> V B   <URL:http://classicvb.org/petition/>
Author
19 Apr 2006 4:43 PM
Herfried K. Wagner [MVP]
"Tull Clancey" <tull.clan***@btopenworld.com> schrieb:
> You're probably right, can you please ellaborate?

Inside the 'PrintDocument' object's 'PrintPage' event handler:

\\\
With e.Graphics
    .TranslateTransform(...)
    .RotateTransform(90)
    .DrawString("Hello World!", Me.Font, Brushes.Blue, 0, 0)
End With
///

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
19 Apr 2006 11:41 PM
Dennis
Check out the FormatFlags property of the StringFormat Class which can be
used with DrawString.
--
Dennis in Houston


Show quoteHide quote
"Tull Clancey" wrote:

> You're probably right, can you please ellaborate?
>
> Thanks,
> Tull.
>
> "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
> news:%238VRI05YGHA.4620@TK2MSFTNGP04.phx.gbl...
> > "Tull Clancey" <tull.clan***@btopenworld.com> schrieb:
> >> Does anyone have a solution for printing rotated text?  I can't rely on
> >> changing the printer orientation.
> >
> > Check out 'e.Graphics.RotateTransform'.
> >
> > --
> > M S   Herfried K. Wagner
> > M V P  <URL:http://dotnet.mvps.org/>
> > V B   <URL:http://classicvb.org/petition/>
>
>
>
Author
16 May 2006 1:34 PM
Tull Clancey
Many thanks, this did exactly what I needed!

Cheers,
Tull.
Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:%238VRI05YGHA.4620@TK2MSFTNGP04.phx.gbl...
> "Tull Clancey" <tull.clan***@btopenworld.com> schrieb:
>> Does anyone have a solution for printing rotated text?  I can't rely on
>> changing the printer orientation.
>
> Check out 'e.Graphics.RotateTransform'.
>
> --
> M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
> V B   <URL:http://classicvb.org/petition/>