Problems with header and footer within sections

  • Hi,

    I'm trying to make a preview of several letters. These letters, I first concatenate to 1 WPCustomRichText, each letter in 1 section.
    The header I want to put at the first page of each letter and the footer at the last page of each letter WITHIN every section. But it shows only the first header of the first section and the last footer of the last section.
    This worked fine with a older version of WPTools5 (2006), but not with the latest version. (How) can I fix this? I'm using Delphi 5.

    Dirk.

    Example with 2 letters (and thus 2 sections):

    • Offizieller Beitrag

    Hi,

    wpraOnLastPage is a speciality of WPTools - it is not suppoted by other RTF reader and cannot be used in sections either.

    I would recommend to create named header and footer and activate them in the OnGetSpecalText event according to the needs.

    That event gets a pointer to the current page (TWPVirtPage) which has the property SectionID to be used to select the correct header or footer.

    Julian