Export to Word - Add Header

If you turn off the PHPWord extension, export is done by letting MS Word imports the HTML, but you have no control.PHPWord cannot parse HTML, so for normal tables the export is done by exporting field by field and adding the data cell by cell using OOXML (so the ExportWord class can have full control on each field and you can customize by overriding the methods). For reports, since the data is not tabular due to grouping and summaries, the PHPWord extension just read the HTML and build the content.To add extra content with PHPWord extension, see Customizing Export.