Updated document generation to use the customized docx writer that adds grids to tables and a header row.