![how to change header in word with landscape and portrait how to change header in word with landscape and portrait](https://support.content.office.net/en-us/media/b0e5d17c-08b8-4ccb-8204-7403472cfc0f.png)
How to change header in word with landscape and portrait code#
"BreakNextPage" will be fine if your code does not rely on having the section start on a right or left page. In that case MigraDoc may automatically create an empty page to have your section start on the correct page. If you have set "MirrorMargins" to true you may wish to set "SectionStart" to either "BreakEvenPage" or "BreakOddPage". Set "Orientation" again in the following section to get back to Portrait format. Start a new section and set "Orientation" as needed. If you have to create a table with many columns, you may wish to have the section with the table in Landscape format while the rest is in Portrait format. You do not have to set a PageSetup for the new section unless you want to change something. The new section will inherit settings from the previous section if you do not overwrite them. If your document contains several chapters and you want to have the name of the chapter in the page header, just create a new section for every chapter and set a new header. You can have as many sections in your document as you need. Using sections ¶PageSetup, Header, and Footer are set for a section. In this case, you can set "DifferentFirstPageHeaderFooter" to true and leave header and footer empty. You may not want page numbers on the title page at all. This will allow you to have page numbers always at the outer edge: on the right side of odd pages and on the left side of even pages. In this case you can also set "OddAndEvenPagesHeaderFooter" to true. but will be the right margin on pages 2, 4. "LeftMargin" will be the left margin on pages 1, 3.
![how to change header in word with landscape and portrait how to change header in word with landscape and portrait](https://i.stack.imgur.com/nMoYb.jpg)
If you do this, "LeftMargin" will become the inner margin and "RightMargin" will be the outer margin. To get this, set "MirrorMargins" in MigraDoc to true. Flip the page over and you will see page 2 on the left and page 3 on the right. Will you print on both sides? ¶Imagine a document with a few pages, printed on both sides and bound decoder on the long edge.Īt first you see page 1. The PageSetup of MigraDoc can be used in two modes, depending on how you print the document.