ExecuteEx to change page properties for a particular section

  • Hello,

    as described in the PDF Manual for WPTools 6 I am using the function ExecuteEx for the page property dialog and hand over the ActiveSection. I would expect that only this ActiveSection would be affected by the settings of the dialog but after clicking ok the whole document changes. Before calling the page prop dialog with ExecuteEx I insert a new section with the following code:

    Code
    WPRichText1.InputString(#12);
    WPRichText1.ActiveParagraph.StartNewSection;

    Did I forget something?

    Thanks for any reply!

    • Offizieller Beitrag

    The component does not automatically select the properties for the section. I think this should be added, but now use this

    WPRichText1.InputString(#12);
    WPRichText1.ActiveParagraph.StartNewSection;

    WPRichText1.ActiveParagraph.CurrentSection.Select := [wpsec_PageSize];
    WPPagePropDlg1.ExecuteEx(
    WPRichText1.ActiveParagraph.CurrentSection, Handle );