This lab will walk through the development of an Office Add-in for Microsoft Word using a number of office.js capabilities such as working with text throughout a document, formating/style, and complex document components such as images, HTML, tables, and content controls. This lab uses the Word add-in tutorial.
- Create your add-in project
- Insert a range of text
- Format and style text
- Replace text and insert text in various locations
- Insert images, HTML, and tables
- Create content controls and replace content in them
To complete this lab, you need to have the following installed.
- Word 2016, version 1711 (Build 8730.1000 Click-to-Run) or later. You might need to be an Office Insider to get this version. For more information, see Be an Office Insider.
- Node and npm
- Git Bash (or another Git client)
Finished solutions are provided in the Word add-in tutorial repo and the Demos folder if you get stuck. If you want to run any of the finished solutions, clone the repository, run npm install (from the directory of the finished solution), then npm run start and follow one of these methods to sideload and test the Office Add-in.
- Windows: Sideload Office Add-ins on Windows
- Word Online: Sideload Office Add-ins in Office Online
- iPad and Mac: Sideload Office Add-ins on iPad and Mac