title: How to populate data in a table programmatically using Docx4j API in java
body: <p>I am using Docx4j <a href="http://www.docx4java.org/trac/docx4j" rel="nofollow noreferrer">http://www.docx4java.org/trac/docx4j</a> for exporting data programmatically to a docx file. I have been successful in creating a table programmatically, but I have not been able to populate the table with values yet. The input to the table is an ArrayList of Hashmaps, for e.g.: </p>
  
  <pre><code>ArrayList&lt;HashMap&lt;String,Object&gt;&gt; objLists  
  </code></pre>
  
  <p>This objLists.size will give the row count of the table and corresponding value of each key inside a hashmap will be the column data. (i.e. hashmap.keys.count == no of cols of table)</p>
  
  <p>Please guide me how to add values using Docx4J APIs.. </p>
  
  <p>It would be great if anyone provide with a sample code to handle the same.</p>