Skip to content

Page_Feed - Report

Used by the formfeed procedure

Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None

Syntax

Property Integer Page_Feed
Access Type Syntax
Read Access: Get Page_Feed to IntegerVariable
Write Access: Set Page_Feed to IntegerVariable/Value

Description

The FormFeed method checks Page_Feed to determine how to handle a formfeed. Review the documentation for FormFeed to understand how it calls the formfeed command.

Set this property below the 'Forward Get' statement in the Starting_Main_Report function.

Page_Feed value: Mode Result
1~32767 Linefeed Mode Output linefeed characters until LineCount = Page_Feed
0 Hardware Formfeed Mode Output a formfeed character (ASCII 12)
-1 Full-Screen Mode Output the number of lines in predefined variable ScreenEnd, then display a message on the screen to press a key to continue and pause until the user does so.
-2 Custom Mode Do nothing. This is what you would use if you are printing to the screen and you want to create your own UI end-of-screen handler inside the FormFeed method.

Sample

Object oCustomerBasicReport is a BasicReport
    Set Server To oCustomer_DD
    Set Ordering to Index.1     

    Function Starting_Main_Report Returns Integer
        Integer iRetval            

        Forward Get Starting_Main_Report to iRetval
        If (iRetval = 0) Begin
            Set Page_Feed to -2
        End

        Function_Return iRetval
    End_Function
End_Object
Col 1 Col 2
Note: In nested reports, only the Page_Feed value of the outermost parent report is used.