Skip to content

Starting_Main_Report - Report

Can be used to set flags in WinPrint reports

Type: Event
Return Data Type: Integer

Syntax

Function Starting_Main_Report Returns Integer

Description

Can be used to set flags in WinPrint (class cWinReport2) reports.

Sample

This sample sets page orinetation to landscape in Starting_Main_Report and back to portait in Ending_Main_Report.

Function Starting_Main_Report Returns Integer
        Integer iRetVal

        Forward Get Starting_Main_Report to iRetVal

        // change to landscape
        Send DFSetSpecPrintFlag to WinPrintID DF_LANDSCAPE
        Function_Return iRetVal
End_Function

Procedure Ending_Main_Report
    Forward Send Ending_Main_Report

    // reset to portrait
    Send DFSetSpecPrintFlag to WinPrintId DF_PORTRAIT
End_Procedure