Header Margins - using negative left and right indents

  • I've seen the responses stating that Header margins can not be set different from the body of the document but that the effect can be achieved by using negative left and right indents.

    So far I haven't been able to make this work for a header and footer that contain tables. (I haven't attempted on simple header or footer.) I have tried using leftindent and rightindent as properties of the table (TParagraph) and of the the CurrAttr.

    If the negative margins are supposed to work with tables in the header can someone point to an example or suggest what I may be doing wrong.

    Thanks
    Tom

    • Offizieller Beitrag

    Hi,

    tables are not positioned by indents.

    You can use this:

    WPRichText1.Table.ASet( WPAT_BoxMarginLeft, -WPRichText1.Header.LeftMargin);
    WPRichText1.Table.ASet( WPAT_BoxMarginRight, -WPRichText1.Header.RightMargin );
    WPRichText1.ReformatAll(false, true);


    Julian