I am generating \"Word document\" with a header on the first page as HTML code.
tag contains:
@page Section {
size:8.5in 11.0
To update on above answer by vencedor and remove the extra empty character encoding added to your header/footer images/text you can do something like this:
Something page 1
Something page 2
YOUR_HEADER IMAGE/TEXT
YOUR_FOOTER_TEXT
of
This now includes full css components for header and footer segments.
The trick that actually removes the extra encoding is declaring yet another table within the MsoFooter and MsoHeader sections.