![]() Use these fields to mark the captions of document figures/tables/equations and include them into the corresponding table. Mark every chapter title in the document by the TC fieldįield field = (.Start, String.Format("TC \f bvz ", j)) Type the caption in the field switch, and it will be reflected in the table of contents instead of the original title. ![]() Insert a TC field at the beginning of the target paragraph. ![]() 'Apply the "heading 1" style to every chapter title in the documentĭim var As String = ((i).Range) ![]() Apply the "heading 1" style to every chapter title in the document For that, use the ParagraphProperties.Style property as shown in the following code snippet. (i).OutlineLevel = 2Ĭreate a new heading style or retrieve an existing one from the ParagraphStyleCollection collection (can be accessed through the Document.ParagraphStyles property) and apply it to the target paragraphs. 'Set the outline level to every chapter title in the documentįor i As Integer = 0 To - 1ĭim var As String = ((i).Range) RichEditDocumentServer1.LoadDocument("Documents//Table of Contents.docx") Set the outline level to every chapter title in the documentįor (int i = 0 i < i )
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |