Skip to content

PreviewNextPage - cDRReport

Methods - Properties - Events

Method Type

Procedure

Arguments

None

Description

Previews the next report page, if available.

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 - when not done before - created as part of the OpenReport method.

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 oNextPageButton is a Button
    Set Label to 'Next Page'

    Procedure OnClick
        Send PreviewNextPage of oReport
    End_Procedure
End_Object