Skip to content

DFGetPrinterPaper - cWinReport2

Determines the paper type/size used in a report

Type: Function
Return Data Type: Integer

Syntax

Function DFGetPrinterPaper Returns Integer

Call Example

Get DFGetPrinterPaper to IntegerVariable

Description

DFGetPrinterPaper returns the paper size used in a report. It will be one of the following values.

Col 1 Col 2
DF_PAPER_LETTER DF_PAPER_LETTERSMALL
DF_PAPER_TABLOID DF_PAPER_LEDGER
DF_PAPER_LEGAL DF_PAPER_STATEMENT
DF_PAPER_EXECUTIVE DF_PAPER_A3
DF_PAPER_A4 DF_PAPER_A4SMALL
DF_PAPER_A5 DF_PAPER_B4
DF_PAPER_B5 DF_PAPER_FOLIO
DF_PAPER_QUARTO DF_PAPER_10X14
DF_PAPER_11X17 DF_PAPER_NOTE
DF_PAPER_ENV_9 DF_PAPER_ENV_10
DF_PAPER_ENV_11 DF_PAPER_ENV_12
DF_PAPER_ENV_14 DF_PAPER_CSHEET
DF_PAPER_DSHEET DF_PAPER_ESHEET
DF_PAPER_ENV_DL DF_PAPER_ENV_C3
DF_PAPER_ENV_C4 DF_PAPER_ENV_C5
DF_PAPER_ENV_C6 DF_PAPER_ENV_C65
DF_PAPER_ENV_B4 DF_PAPER_ENV_B5
DF_PAPER_ENV_B6 DF_PAPER_ENV_ITALY
DF_PAPER_ENV_MONARCH DF_PAPER_ENV_PERSONAL
DF_PAPER_FANFOLD_US DF_PAPER_FANFOLD_STD_GERMAN
DF_PAPER_FANFOLD_LGL_GERMAN DF_PAPER_LAST

The DFGet and DFSet messages and the WinPrint2 global object.

All of the cWinReport2 DFGet... and DFSet... messages 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.

Return Value

Returns a paper type/size value