Changing Page Orientation Within a Document

L

leo

Hi All,

Do anyone know that there is any way to change the page orientation within a
document, say, page 1 is Landscape and page 2 is Portrait by C# coding??

Thanks.

Leo
 
J

Jonathan West

leo said:
Hi All,

Do anyone know that there is any way to change the page orientation within
a
document, say, page 1 is Landscape and page 2 is Portrait by C# coding??

I'll leave it to you to translate to C#, but what you have to do is this.

1. Orientation is a property of a Section, so you must insert a section
break between the pages you want to have different orientations, using the
InsertBreak method.

2. For the sections whose orientation you want to change, change the value
of the PageSetup.Orientation property.
 
Top