KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Printing a unique header only on the first page
PRODUCT: 4D Write | VERSION: 2004 | PLATFORM: Mac & Win
Published On: July 30, 2008
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

To access the headers as a 4D Write user, switch from normal view to page view, by selecting the View menu and then "Page":




There will be a visible area before the body text where you insert the header text:




By default this header will appear on every printed page. But if a unique first page header is desired, that preference can be specified by selecting the File..Preferences menu, and selecting the "Different on first page" checkbox under "Headers and footers":




Now you can enter a first page only header in the first header box in page view, and a different header in the second header box, which will be repeated every page after the first. In method code, this property can be set with this command:

WR SET DOC PROPERTY(area1;wr different on first page ;1)
 `where area1 is the 4D Write form area and 1 is Yes
WR SET FRAME (area1;wr first header )
 `position text insertion cursor in the first header
WR INSERT TEXT (area1;"This is header 1")