docx
    Preparing search index...

    Function fillPartPageNumbers

    • Writes the page numbers worked out for the document a header, footer, footnote, endnote or comment is in into the fields of the formatted part that show them, once the document's body is written. Its page references and SEQ fields are written clean, and its SEQ fields are left blank: Word writes them as an error, "Error! Main Document Only.".

      Parameters

      • part: IXmlableObject | undefined

        The formatted part, if it has anything to write

      • context: IContext

        The context it was formatted in, with the document it is in

      • OptionalreferenceId: number

        The number of the relationship to a header or footer. The SECTIONPAGES fields of the other parts are left as they are

      Returns void