Skip to content

PaperWidth - cDRReport

Methods - Properties - Events

Method Type

Function

Return Type

Integer

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

Retrieves the paper width definition of the report. The result is in TWIPS.

This method cannot be used before the report OCX object is initialized and the report has been opened (see OpenReport).

DataFlex Framework usage

  • Web
  • Windows
  • FlexTron

Sample

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

Object oPaperSizesButton is a Button
    Set Label to 'Paper Sizes in Report'

    Procedure OnClick
        String sReportId
        Integer iLength iWidth

        Get OpenReport of oReport to sReportId
        If (sReportId <> '') Begin
            Get PaperLength Of oReport sReportId to iLength
            Get PaperWidth Of oReport sReportId to iWidth
        End
    End_Procedure
End_Object