In the recently released version X15 of TX Text Control, all types of objects can be placed into a header and footer that overlap the main text. Consider the following letterhead design:

Letterhead

On the left side (margin), the company address and phone number (red icons) are placed left from the main text area. This area is part of the header and is positioned behind the text. This area is part of the letterhead header and is repeated automatically on newly added pages.

Looking at the design view of the document in TX Text Control, you can see the TextFrame overlapping the main text area:

Letterhead

When a header/footer is active, TextFrames added using the ribbon bar, are automatically inserted behind the text and positioned fixed on page which is the required condition under that objects overlap the main text.

In order to insert an object to a header programmatically, the object needs to be added "fixed on page" and the TXTextControl.FrameBase.InsertionMode must be defined as BelowTheText and FixedOnPage.

Loading...