Change Page Size and Page margins

<< Click to Display Table of Contents >>

Navigation:  Programming > Change text attributes in code > Document Attributes >

Change Page Size and Page margins

Modify WPRichText.Header.

 

A page has 4 margins,

Left, Right, Top, Bottom

 

Together with PageWidth, PageHeight that defines the page size and printable area.

 

MarginHeader and MarginFooter define the minimum distance of the page footer text or header text to the borders.

 

Those properties are all in the sub property Header - see link to manual above - and modify the current document.

 

The property DefaultPageWidth etc. set the values which are applied when the editor is cleared (create new document).

 

Method SetPageWH can be used to set several values at once, the values which should not be changed can be passed as -1