- #CREATE TABLE OF CONTENTS IN WORD DOCUMENT HOW TO#
- #CREATE TABLE OF CONTENTS IN WORD DOCUMENT UPDATE#
For "SupChapter 1-1" and "SubChapter 2-1".ĭim Heading2Style As ParagraphStyle = CType(Style.CreateStyle(StyleTemplateType. Backup the Sub-documents before you start.
Ideally, use the same template to avoid any possible rework.
#CREATE TABLE OF CONTENTS IN WORD DOCUMENT HOW TO#
For "Chapter 1" and "Chapter 2".ĭim Heading1Style As ParagraphStyle = CType(Style.CreateStyle(StyleTemplateType.Heading1, dc), ParagraphStyle) Table of Contents in Word 2010, In this chapter, we will discuss how to create table of contents in Word 2010. How To Create Master Documents In Word Follow these steps to create a Master document to manage large MS Word files. ' First of all, create an instance of DocumentCore. ''' Create extended table of contents in word document.ĭim resultFile As String = "Extended-Table-Of-Contents.docx" Create and add TOC (Table of Contents). Next step is apllying these styles for TOC Header, TOC, and Toc Ending. Text, "Caption" style for the picture captions, and "Heading 1" for the major headings. So you would use the "Title" style for your title, "Body Text" style for body In Word, a style is a collection of formatting instructions. 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 TOCStyle = (ParagraphStyle)Style.CreateStyle(StyleTemplateType.Subtitle, dc) ParagraphStyle Heading2Style = (ParagraphStyle)Style.CreateStyle(StyleTemplateType.Heading2, dc) In Microsoft Word, you can create a table of contents that instantly updates to reflect changes made to a document.The easiest way to build and maintain a table of contents is with styles. For "SupChapter 1-1" and "SubChapter 2-1". ParagraphStyle Heading1Style = (ParagraphStyle)Style.CreateStyle(StyleTemplateType.Heading1, dc) A Table of Contents page makes it easier for your readers to navigate and work with long documents.
#CREATE TABLE OF CONTENTS IN WORD DOCUMENT UPDATE#
Create a Table of Contents for a Word document and update it to add new entries. Create and add Heading1, Heading2 and TOC styles. This Contents Page in Word tutorial is suitable for users of Word 2010, 2013, 2016, 2019, and Word for Microsoft 365.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.
Table of Content is generated in the cursor position. Click the Options button from the right bottom corner to include/exclude heading styles to build a customized table of content.Ĭlick OK.This article will explain to you how to create a table of contents in Microsoft Word. If you have a very large Word document, with lots of chapters/sections and several levels of headings and subheadings, you might want to help your document’s readers by adding a ‘mini’ Table of Contents (TOC) in front of each section, just like the publishers of US textbooks have done for years.
On clicking Insert Table of Contents, the dialog box Table of Contents appears. Type out your word document in full, but remember to leave space for the table at the beginning. From the bottom of the drop-down list, click Insert Table of Contents. Once you are done applying heading styles to all the heading levels in your document, place the mouse cursor where you want to generate the table of content.Ĭlick the Reference tab from the Ribbon and then under group Table of Contents, click the icon Table of Contents. (To learn more on how to create and apply multilevel heading styles in your document, read the following post: Identify the texts in your document that you intend to highlight as headings and then apply appropriate heading styles from the Styles gallery.įor example, to apply first level heading, select the text in your document and then click style Heading 1 from the Styles gallery. Creating a table of content automatically in Word involves the following two steps: Step 1:ġ.