Groups | Blog | Home
all groups > dotnet drawing api > october 2003 >

dotnet drawing api : PageSettings.Landscape


JHornick NO[at]SPAM online.microsoft.com
10/29/2003 1:09:33 AM
Hi,

IIRC, you need to do it before PrintPage(). By that time, you've already
called StartPage() and it's too late to reset the orientation. The easy way
to do this is to create your own PrintController and use it. Or, even
easier, if your whole job is one orientation, just set it before you call
Print().

Also, be sure to test on version 1.1 of the Framework - there were some bug
fixes in printing in 1.1.

Thanks,
- John
Microsoft Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.
Visit http://www.microsoft.com/security for current information on security.


[quoted text, click to view]
Ron Allen
10/29/2003 8:51:18 AM
Ori,
Create an OnQueryPageSettings event handler for the PrintDocument and
set the orientation there.
Ron Allen
[quoted text, click to view]

Ori
10/29/2003 11:54:57 AM
I am setting PageSettings.Landscape = True in PrintPage event.

I have verified its value and it still prints in Portrait.

Any ideas?

AddThis Social Bookmark Button