you may take a look at this and refer to the "create" part of the code.
note: this code is on top of SDK 1.0.
hope it helps:)
I managed to get a header added to my document using this method (with SDK 2.0). Adding a footer should be a similar process.
HeaderPart hp = mainPart.AddNewPart<HeaderPart>(); string relId = mainPart.GetIdOfPart(hp); SectionProperties sectPr = new SectionProperties(); HeaderReference headerReference = new HeaderReference(); headerReference.Id = relId; sectPr.Append(headerReference);
d.Append(sectPr); mainPart.Document = d; mainPart.Document.Save(); hp.Header = GetHeader(); hp.Header.Save();
wordDoc.Close(); }}
Stuart.