/Word-Add-in-DocumentAssembly

A document assembly sample using a "Statement of Work" template that demonstrates how to use the Word JavaScript API.

Primary LanguageJavaScriptOtherNOASSERTION

Document assembly Word add-in sample

This Word add-in will show you how to:

  1. Insert a template content from OOXML.
  2. Add boilerplate paragraphs.
  3. Insert an image.
  4. Search the text and insert content controls.
  5. Change the text of the content controls.
  6. Insert content from a file.
  7. Search by using wildcards.
  8. Insert footers into the document.
  9. Customize and insert OOXML by using setSelectedDataAsync API.

Prerequisites

To use the Document assembly add-in sample, the following are required.

  • Visual Studio 2015 or Visual Studio 2013 with Update 5.
  • Word 2016, or any client that supports the Word Javascript API.

Run the sample add-in

Open the solution in Visual Studio and select F5 to run the sample. An instance of Word will start and you will see the add-in loaded into Word.

Questions and comments

We'd love to get your feedback about the Document assembly Word add-in sample. You can send your questions and suggestions to us in the Issues section of this repository.

Questions about add-in development in general should be posted to Stack Overflow. Make sure that your questions or comments are tagged with [office-js], [word], and [API].

Learn more

Here are more resources to help you create Word Javascript API based add-ins:

Copyright

Copyright (c) 2015 Microsoft. All rights reserved.