Skip to content

DFPrinterBinFirstPage - cWinReport2

Allows you to set a different printer bin for report's first page

Type: Procedure

Parameters

Parameter Type Description
eBinType Integer Printer Bin Source. Should be one of the following values

Syntax

Procedure DFPrinterBinFirstPage Integer eBinType

Call Example

Send DFPrinterBinFirstPage eBinType

Description

DFPrinterBinFirstPagesets the printer bin to used for the first page in a report. This method is normally sent inside of Starting_Main_Report

Function Starting_Main_Report Returns Integer
    Boolean bErr
    Send DFSetMetrics wpm_cm
    Send DFSetmargins 1 1 1 1
    Send DFSetLandscape true
    Send DFSetPrinterBin DF_BIN_LOWER
    Send DFPrinterBinFirstPage DF_BIN_MIDDLE
    Forward Get Starting_Main_Report to bErr
    Function_return bErr
End_Function // Starting_Main_Report

The DFGet and DFSet messages and the WinPrint2 global object.

All of the cWinReport2 DFGet... and DFSet... messages, including this message, set the state of the global WinPrint2 report object (the WinPrint2 report engine). It is not setting the state of the report object (i.e., these methods are not setting report object properties). Since many reports in an application will use the global WinPrint2 object, you must set and get the state of this object when your report object has control of it. The best place to do this is inside of the Starting_main_report event.