Skip to content

OnPreShowPrintDialog - cDRReport

Methods - Properties - Events

Method Type

Procedure (event)

Arguments

Argument Description
sReportID Contains the ID of the main report.
hoPrintDialog Contains the object ID of a cPrintdialog object, also stored in the phoPrintDialog

Description

This event is sent by the object just before the print dialog function of the cPrintDialog class is invoked.

This occurs in:

The CopyReportPageSizeAndOrientation event has been fired before this event.

DataFlex Framework usage

  • Web
  • Windows
  • FlexTron

Sample

Object oReport is a cDRReport
    Procedure OnPreShowPrintDialog String sReportId Handle hoPrintDialog
        Integer iFlags

        Forward Send OnPreShowPrintDialog

        Get piFlags of hoPrintDialog to iFlags
        Set piFlags of hoPrintDialog to (iFlags ior PD_COLLATE)

        Set piCopies of hoPrintDialog to 2
    End_Procedure
End_Object