Navigation: Language Reference > 9 - Window and Report Attributes > Window and Report Attributes >====== PAGEBEFORE (set page break first) ====== | |
PAGEBEFORE( [ newpage ] )
PAGEBEFORE | Specifies the structure is printed on a new page, after page overflow. |
newpage | An integer constant or constant expression that specifies the page number to print on the new page (PROP:PageBeforeNum, equivalent to {PROP:PageBefore,2}). If zero (0) or omitted, forced page overflow does not occur. If negative one (-1) , the current page number increments during page overflow. |
The PAGEBEFORE attribute (PROP:PAGEBEFORE) specifies that the DETAIL, or group HEADER or FOOTER structure (contained within a BREAK structure), is printed on a new page, after page overflow. This means that first, the page FOOTER is printed, then the FORM and page HEADER. The print structure on which the PAGEBEFORE attribute is present is printed only after these page overflow actions are complete.
The newpage parameter, if present, resets automatic page numbering at the number specified.
Example:
CustRpt REPORT
HEADER
!structure elements
END
Break1 BREAK(SomeVariable)
HEADER,PAGEBEFORE(-1) !Group Header, initiates page overflow
!structure elements
END
CustDetail DETAIL
!structure elements
END
FOOTER
!structure elements
END
END
FOOTER
!structure elements
END
END
See Also: PROP:NextPageNo