Walkthroughs using Word
The following walkthroughs demonstrate ways you can use document-level customizations and VSTO Add-ins to automate Microsoft Office Word and customize the user interface (UI).
Document-level walkthroughs
Walkthrough: Create your first document-level customization for Word demonstrates how to create a basic document-level customization for Word.
Walkthrough: Insert text into a document from an actions pane demonstrates how to add text to a Word document when users enter text in controls on an actions pane.
Walkthrough: Bind data to controls on a Word actions pane demonstrates how to bind data to controls on an actions pane. The controls demonstrate a master/detail relation between tables in a SQL Server database.
Walkthrough: Change document formatting using CheckBox controls demonstrates how to use check boxes on a Word document to change formatting.
Walkthrough: Display text in a text box in a document using a button demonstrates how to use buttons and text boxes on Word documents.
Walkthrough: Create shortcut menus for bookmarks demonstrates how to create a shortcut menu that can be used to format the text in a bookmark.
Walkthrough: Call code from VBA in a Visual Basic project demonstrates how to call code in a customization assembly from VBA code in the document.
Walkthrough: Create a template by using content controls demonstrates how to use content controls to create structured and reusable content in a Word template.
Walkthrough: Bind content controls to custom XML parts demonstrates how to bind content controls in a Word document to XML data that is stored in the document.
Application-level walkthroughs
Walkthrough: Create your first VSTO Add-in for Word demonstrates how to create a basic VSTO Add-in for Word.
Walkthrough: Add controls to a document at run time in a VSTO Add-in demonstrates how to add controls to a document by using a VSTO Add-in.
Walkthrough: Create a custom tab by using Ribbon XML demonstrates how to create a custom ribbon tab by using an XML descriptor file in a VSTO Add-in.