Here's another example using the new version (2.08) of XLUtils.
I have added a few FieldCode tags (DATE, PAGE, NUMPAGES) in the header from the WordExample from Erel:
[header]
[p][FieldCode=DATE/]${TAB}${TAB}${TAB}${TAB}${TAB}[FieldCode=PAGE/] of [FieldCode=NUMPAGES/]${TAB}${TAB}${TAB}${TAB}${TAB}${TAB}[img dir=assets filename=logo.png width=30 height=30/][/p]
[p][img dir=assets filename="blue_line.png" width=470 height=2/][/p]
[/header]
The blue line image serves as a bottom border in a second paragraph of the header.
In the footer the blue line appears closer and is in the same paragraph:
[footer]
[p][img dir=assets filename="blue_line.png" width=470 height=2/]Generated automatically...${TAB}${TAB}${TAB}${TAB}${TAB}${TAB}${TAB}${TAB}${TAB}[FieldCode=PAGE/] of [FieldCode=NUMPAGES/][/p]
[/footer]
TABs are used to position the code texts in the paragraph.
Tip: make sure to put the closing / in the FieldCode tags.
With the underline tag the contents of the fields are not underlined.