User Tools

Site Tools


pagebefore_set_page_break_first_.htm
Navigation:  Language Reference > 9 -  Window and Report Attributes > Window and Report Attributes >====== PAGEBEFORE (set page break first) ====== Previous pageReturn to chapter overviewNext page

PAGEBEFORE( [ newpage ] )

blk2blue.jpg

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

pagebefore_set_page_break_first_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1