If any type of header is omitted for a given section, then the following The header type specified by the current headerReference is Within each section of a document there may be up to three different Is not present, or does not have a TargetMode attribute value of If the relationship type of the relationship specified by this element The id attribute, which specifies an explicit relationship to theĪppropriate Header part in the WordprocessingML package. This element specifies a single header which shall be associated with Specification introduces the header reference element. Therefore it is useful to familarize yourself with headers and Reference to the existing header and create a reference to the new In this example you are going to delete the header part from the targetįile and create another header part. Structure of the Header Reference Element Must explicitly reference the following assemblies in your project:ĭocumentFormat.OpenXml (installed by the Open XML SDK)ĭirectives or Imports statements to compile To use the sample code in this topic, you must install the Open XML SDK 2.5. Office to replace the header in word processing document
#HOW TO CHANGE HEADER IN WORD HOW TO#
This topic shows how to use the classes in the Open XML SDK 2.5 for