How to add a table
How to add a table to a Microsoft Word document
For this tutorial is recommended to have followed the Getting started tutorial
We're gonna start with an empty document and the Docxmerge Add-in opened.
![2019-10-01 21_03_56-Window.png](https://s3.k8s.kfs.es:443/docxmerge-prod/images/2019-10-01_21_03_56-Window.width-800.png?AWSAccessKeyId=kfss3&Signature=2Sedhc%2Ba0EfE5maS4JtxI%2Bxq%2Blo%3D&Expires=1722092213)
We are going to create a simple table with 3 columns and two rows
The headers will be:
- Name
- Surname
- Age
![2019-10-01 21_21_41-Window.png](https://s3.k8s.kfs.es:443/docxmerge-prod/images/2019-10-01_21_21_41-Window.width-800.png?AWSAccessKeyId=kfss3&Signature=ah6qfwPDLHetwJWVwKZHfz%2F9qWY%3D&Expires=1722092213)
And we're going to fill the details for the first row:
![2019-10-01 21_22_31-Window.png](https://s3.k8s.kfs.es:443/docxmerge-prod/images/2019-10-01_21_22_31-Window.width-800.png?AWSAccessKeyId=kfss3&Signature=4RwwGDx0hTiFdl7a6O36uHkC8NY%3D&Expires=1722092213)
Now, we have to declare the Content Control for each column of the table.
You can see how to add a Rich Text Control here.
We can turn on the design mode to see the fields:
Here is the result:
![2019-10-01 21_25_50-Window.png](https://s3.k8s.kfs.es:443/docxmerge-prod/images/2019-10-01_21_25_50-Window.width-800.png?AWSAccessKeyId=kfss3&Signature=SX84zuJuvwCkreTlLhIsriTjQSo%3D&Expires=1722092213)
We´re going to select the whole row, you can this by clicking and add a Repeating Section Content Control.
![repeating_text_control.gif](https://s3.k8s.kfs.es:443/docxmerge-prod/images/repeating_text_control.width-800.png?AWSAccessKeyId=kfss3&Signature=p1wdl9YY2kvfzmOU5AGqfHjQF9U%3D&Expires=1722092213)
You can see the following GIF: Repeating Text Control GIF
Having done the table, the only thing missing is creating a new template and testing it.
![2019-10-01 21_46_39-Window.png](https://s3.k8s.kfs.es:443/docxmerge-prod/images/2019-10-01_21_46_39-Window.width-800.png?AWSAccessKeyId=kfss3&Signature=YneFzgca%2BzDFNeqkxUJNz8G32U0%3D&Expires=1722092213)
We will get a JSON example with 2 elements:
![2019-10-01 21_47_40-Window.png](https://s3.k8s.kfs.es:443/docxmerge-prod/images/2019-10-01_21_47_40-Window.width-800.png?AWSAccessKeyId=kfss3&Signature=3C9Aw4ufsEEftNS0Y07b6FBeB%2BY%3D&Expires=1722092213)
When we click Print, we will get a pdf like this:
![2019-10-01 21_48_31-Window.png](https://s3.k8s.kfs.es:443/docxmerge-prod/images/2019-10-01_21_48_31-Window.width-800.png?AWSAccessKeyId=kfss3&Signature=UwDRCAL7RerduuVewuc4zYrQ1KI%3D&Expires=1722092213)
To integrate the template in your application, you can check the Api Integration document.