# OpenDocumentConfig

**Kind**: interface | **Module**: [Word](https://docs.interop.io/adapters/reference/javascript/word/index.md)

**Source**: https://docs.interop.io/adapters/reference/javascript/word/opendocumentconfig/index.html

Configuration object for opening a Word document.

## Properties

- **`data`** (`string`, required)
  The content of the document in HTML format.
- **`isDocx`** (`boolean`, required)
  If `true`, the document data will be sent to Word in DOCX format. If `false`, the data will be sent as HTML.
- **`name`** (`string`, required)
  Name for the Word document.
  Used for identifying the document in the app and will be the name of the document in Word when it's opened.
- **`templateName`** (`string`, optional)
  Name of a template to use when creating the Word document. The template must be already present in Word.
