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=5XK8ubdxsxok6T%2BgqGt4BNVkfYc%3D&Expires=1722073863)
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=ESTKDrzI3aBjRHuvBgYuOhmQgP4%3D&Expires=1722073863)
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=cBZJg2uyWVCpq9GMs4iX0EaRdZA%3D&Expires=1722073863)
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=mLaYsCd5w1tHCyKc5O3%2BLrLxF7s%3D&Expires=1722073863)
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=nbj5PysOwH2wX%2BiJOuERItm6oKs%3D&Expires=1722073863)
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=q081nFlARVL%2FkGSmTvKZauCJ1wk%3D&Expires=1722073863)
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=aonscWD0lDymRV%2FchkeJUC8FIII%3D&Expires=1722073863)
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=0gfeM7pX1sF1Y8IKKR7t2bENVfs%3D&Expires=1722073863)
To integrate the template in your application, you can check the Api Integration document.