Set Header and Footer Margins in a separet Section

  • Hi,

    I am trying to set the Header- and Footer margins for a specific section. When I call the PageProp Dialog in the main section the dialog allows me to set these margins. But for another section the dialog does not show these properties. I am using the following code to call the PageProp Dialog:

    Code
    WPPagePropDlg1.EditBox := CurEditor;
      if CurEditor.ActiveParagraph.CurrentSection <> nil then CurEditor.ActiveParagraph.CurrentSection.Select := [wpsec_PageSize];
      WPPagePropDlg1.ExecuteEx(CurEditor.ActiveParagraph.CurrentSection, self.Handle);

    Can I force the Dialog to show these properties for all sections?

    Thanks and regards
    Markus