
Optional pPageStylePtr As Object, Optional pMinPrintMargin As Long, _Ĭonst minHbd As Long = 200, minPm As Long = 400 Sub insertHeaderIfMissingAndAdjustMargin(Optional pDoc As Object, _
What shouldn be on a header and footer in word code#
To ease those of them who can accept support by user code (supposed to get assigned to a sensitive area in the Format toolbar), I want to post a raw draft of a Sub doing the needed complicated calculations and setting the new margin based on the result. However some users still seem to have problems with adjusting the margins complying with their intention to place a header inside the area that was defined as the margin in advance of the insertion. The bug tdf#33304 meanwhile was marked RESOLVED NOTABUG. If this is what you expected, close the question, that will help other people with the same question. If this answer helped you, please accept it by clicking the check mark to the left and, karma permitting, upvote it. Size is the minimal height devoted to the header/footer and can made fixed if you uncheck the dynamic height check box.

Spacing measures the white space between the header/footer and the text area. With elementary arithmetic, you can compute the Writer-style margins dimensions then customise your page style in the Header or Footer tab. Sketch the position of your header/footer and decide whether they have a fixed or adaptative height.įrom your question, your consider the margins as defining the area where your text will be printed. Set the margins which are “true” non-printing margins.

So, the question is: what is your page design? Draw a schema for your page.

Only manually positioned objects, such as frames, can reside in there. Il Writer, margin are no man’s land forbidden to text flow. LO Wrtiter has a different approach to page real estate management than M$ Word.
