![]() If you wish to have multiple columns of text on a single page, tap on Columns inside the Text. PageSetup_last_Page.LeftMargin = pageSetup_last_Page.RightMargin = pageSetup_last_Page.TopMargin = pageSetup_last_Page.BottomMargin = 72 * 1 ĭocument final_Document = (Document)doc.Clone(false) įinal_Document.AppendDocument(first_Page, ImportFormatMode.KeepSourceFormatting) įinal_Document.AppendDocument(middle_Pages, ImportFormatMode.KeepSourceFormatting) įinal_Document.AppendDocument(last_Page, ImportFormatMode.KeepSourceFormatting) įinal_Document.Save("C:\\Temp\\sample\\21.5. Section breaks are used to allow formatting changes (i.e., different margins, page number styles, etc.) in the same document. Method 01: Edit Word document on iPhone using Apple Pages. This means that if you need to switch margins in the middle of a document, you can do so by inserting a section break and then modifying the margins for each of the resulting document sections. You can change each of the four margins in the dialog box that appears. Page margins can be different for each section in your document. Word lists a number of pre-formatted options, but you can also make your own margins by selecting Custom Margins, found at the bottom of the Margins list. ![]() ![]() PageSetup.LeftMargin = pageSetup.RightMargin = pageSetup.TopMargin = pageSetup.BottomMargin = 72 * 2 To change margins, click on the Margins button, found on the Page Layout tab. ![]() PageSetup_first_Page.LeftMargin = pageSetup_first_Page.RightMargin = pageSetup_first_Page.TopMargin = pageSetup_first_Page.BottomMargin = 72 * 1 įoreach (Section section in middle_Pages.Sections) The code will then configure page setup values ( left, right, top, bottom margins) for these three subdocuments and finally merge them to form a final document: Document doc = new Document("C:\\Temp\\sample\\template.docx") ĭocument first_Page = doc.ExtractPages(0, 1) ĭocument middle_Pages = doc.ExtractPages(1, total_Pages - 2) ĭocument last_Page = doc.ExtractPages(total_Pages - 1, 1) NET will split template Word document into three sub-documents i.e a document containing only the first page, a document object containing only the middle pages and a document containing only the last page. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |