The following example shows you how to add header and footer to a document. You can use Microsoft Word to open created document. See screenshot.