Skip to content

piPaperMarginBottom - cDRReport

Methods - Properties - Events

Type

Integer

Default

None

Arguments

Argument Description
sReportID ID of the report. Can be ID of the main report or the ID of a sub-report. This argument can be passed as an empty string. The empty string can be written as C_USEMAINDRREPORTID.

Description

Sets or gets the size of the paper bottom margin. Margins are set during report definition via the page setup option. While you can set the paper margin value, it is up to the printer to support this or not.

Margin values are in TWIPS.

This property cannot be accessed before the report OCX object is initialized and a report is opened (OpenReport).

DataFlex Framework usage

  • Web
  • Windows
  • FlexTron

Sample

Object oReport is a cDRReport
    Set psReportName to 'MyReport.dr'

    Procedure OnInitializeReport
        String sReportId

        Forward Send OnInitializeReport

        Get psReportId to sReportId
        Set piPaperMarginBottom sReportId to 1360 // 2.4 cm * 567
    End_Procedure
End_Object