Skip to content

DFGetMetrics - cWinReport2

Returns the metrics used by the report

Type: Function
Return Data Type: Integer

Syntax

Function DFGetMetrics Returns Integer

Call Example

Get DFGetMetrics to IntegerVariable

Description

DFGetMetrics returns the metrics, centimeters or inches, used by the report.

integer eMetrics
Get DFGetMetrics to eMetrics

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.

See Also

DFSetMetrics

Return Value

Returns metrics value of | Constant | Meaning | |---|---| | wpm_cm | centimeters | | wpm_inch | inches |

Syntax

Function DFGetMetrics Returns Integer
Col 1 Col 2
Call: Get DFGetMetrics to IntegerVariable

Description

DFGetMetrics returns the metrics, centimeters or inches, used by the report.

integer eMetrics
Get DFGetMetrics to eMetrics

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.

See Also

DFSetMetrics