Walkthroughs using Word
Applies to: Visual Studio Visual Studio for Mac
Note
This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
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: Update a chart in a document using radio buttons Demonstrates how to change chart styles in a Word document by using option buttons in a document-level customization.
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.