---
title: Generate a Document that Contains a Variable with the Add-in
slug: rm/generate-a-document-that-contains-a-variable-with-the-add-in
docTags: 
createdAt: 2026-06-09T13:38:47.647Z
---

At any time, you can generate output using the data from your data source in Microsoft Office with the Blueprint add-in.

If your template contains variables, AutoTag prompts you to specify values for the variables before it generates the output.

To generate the document that contains a variable from Microsoft Office:

1. Save your template.
   If you do not save your template, the following dialog is displayed when you try to generate output.

   ::Image[]{src="https://files.helpdocs.io/4rdnduk17o/articles/bqwe6fv2h2/1584653478883/generate-document-with-addin-1.png" size="70" isUploading="false" width="469" height="173" darkWidth="469" darkHeight="173" position="flex-start" showCaption="false"}
2. Click the Output button (Blueprint tab) and select your desired output format.
   Blueprint supports **DOCX** and **XLSX** output formats.

   ::Image[]{src="https://files.helpdocs.io/4rdnduk17o/articles/bqwe6fv2h2/1584653493735/generate-document-with-addin-2.png" size="70" isUploading="false" width="563" height="326" darkWidth="563" darkHeight="326" position="flex-start" showCaption="false"}
3. Specify the values for each of the variables in your template, and then click **OK**.
   You can specify the values on the Run a Report dialog:


::Image[]{src="https://files.helpdocs.io/4rdnduk17o/articles/m84eaj5byi/1584654091281/specify-variable-values.png" size="70" isUploading="false" width="400" height="257" darkWidth="400" darkHeight="257" position="flex-start" showCaption="false"}

Here's an example of a document (with a variable) that was generated using the template:

::Image[]{src="https://files.helpdocs.io/4rdnduk17o/articles/m84eaj5byi/1584654108439/word-generate-document-with-variable.png" size="70" isUploading="false" width="404" height="157" darkWidth="404" darkHeight="157" position="flex-start" showCaption="false"}

