![]() ![]() For "SupChapter 1-1" and "SubChapter 2-1".ĭim Heading2Style As ParagraphStyle = CType(Style.CreateStyle(StyleTemplateType.Heading2, dc), ParagraphStyle) ![]() For "Chapter 1" and "Chapter 2".ĭim Heading1Style As ParagraphStyle = CType(Style.CreateStyle(StyleTemplateType.Heading1, dc), ParagraphStyle) ' First of all, create an instance of DocumentCore. ![]() Page numbers are automatically updated in that case.ĭocument.GetPaginator(new PaginatorOptions() ) Var toc = (TableOfEntries)document.GetChildElements(true, ElementType.TableOfEntries).FirstOrDefault() TOC can be updated only after all document content is added. When you create a table of contents this way, you can automatically update it if you make changes in your document.Paragraph is a Block derived element used to group Inline elements like a Run, Shape, Picture, Field etc. After adding of the reference to () - it's 100% C# managed assembly you will be able to create a new document, parse an existing, modify anything what you want.")) 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"))
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |