authorityjae.blogg.se

How to create table 3-1 using references in word 2016
How to create table 3-1 using references in word 2016







how to create table 3-1 using references in word 2016

Net» will help you in development of applications which operates with DOCX, RTF, PDF and Text documents. Add the content of Chapter 1 / Subchapter 1-1 New Paragraph(document, String.Format("Subchapter 1-1")) Create a new paragraph for Chapter and SubChapter.Create TOC by applying heading styles - for example, Heading 1, Heading 2, and Heading 3 - to the text that you want to include in the table of contents.ĭocument.Net searches for those headings and then inserts the table of contents into your document. Section is a collection of Block elements that are grouped by a unify page properties concept and having specific headers and footers.

how to create table 3-1 using references in word 2016

(new TableOfEntries(document, FieldType.TOC)) (new Paragraph(document, "Table of Contents")) Add new Section with Paragraphs into our document.If you want to learn more about styles and formatting, please go to our example about advanced formatting. Use them to identify different parts of a document, but they also take advantage of other Word features. Word's heading styles are called Heading 1, Heading 2, on down to Heading 9. ParagraphStyle Heading2Style = (ParagraphStyle)Style.CreateStyle(StyleTemplateType.Heading2, document) ParagraphStyle Heading1Style = (ParagraphStyle)Style.CreateStyle(StyleTemplateType.Heading1, document) DocumentCore is root class, it represents a document itself. First of all, create a DocumentCore object with name document.ĭocumentCore document = new DocumentCore().Notice you are importing the SautinSoft.Document namespace.









How to create table 3-1 using references in word 2016