Skip to content

PreviewFirstPage - cDRReport

Methods - Properties - Events

Method Type

Procedure

Arguments

None

Description

Previews the first report page.

This method does nothing if pbHasErrors and pbCancelIfError are true.

This method cannot be used before the report OCX object is initialized. The COM object creation is performed as part of the OpenReport method if it has not been done previously.

DataFlex Framework Usage

  • Windows
  • Windows controls in a FlexTron application

Sample

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

Object oRunReportButton is a Button
    Set Label to 'Run Report'

    Procedure OnClick    
        Send RunReport of oReport
    End_Procedure
End_Object

Object oFirstPageButton is a Button
    Set Label to 'First Page'

    Procedure OnClick
        Send PreviewFirstPage of oReport
    End_Procedure
End_Object