Skip to content

GenerateReport_Procedure - cDRReport

Methods - Properties - Events

Method Type

Procedure

Arguments

None

Description

First calls the GenerateReport function. If the PDF was generated successfully, the DownloadURL function converts this to a URL that can be used in the web browser. If the property phoReportViewer is set, that viewer object is used; otherwise, the peBrowserTarget value is passed to the web framework method NavigateToPage.

DataFlex Framework usage

  • Web

Sample

Object oMyReport is a cDRReport
    Set psReportName to "CustomerList.dr"
    Set phoReportViewer to oViewer
End_Object

Object oViewer is a cWebIFrame
End_Object

Object oRunReportButton is a cWebButton
    Procedure OnClick
        Send GenerateReport of oMyReport
    End_Procedure
End_Object

Notes

  • Available for DataFlex 17.1 and higher
  • This method is meant to be used in Web Applications as it generates a Download URL and works with a Web report viewer object or a browser target. The GenerateReport function can be used for both Windows and Web applications.