Skip to content

ExportReportToDownloadURL - cDRReport

Methods - Properties - Events

Method Type

Procedure

Arguments

Argument Description
NamedValues An array of tNameValuePair members. The array element values are used to determine the output and options.

Description

This method is called from ExportReport.wo but can be used in your own code as well.

The method opens the current report (using OpenReport) and expects the NamedValues array to contain at least two elements (named ExportFormat and AllPages).

The ExportFormat element must be one of: HTML, TIFF, GIF, PNG, JPEG, PDF, CSV, XLS, XLSX, RTF.

The AllPages element must be true or false.

DataFlex Framework usage

  • Web

Sample

Object oExportReportMenuItem is a cWebMenuItem
    Set psCaption to "Export Report"
    Set peActionDisplay to adMenu

    Procedure OnClick
        Register_Object oExportReportWebView

        Send NavigateForward Of oExportReportWebView Self
    End_Procedure

    Procedure OnNavigateBack Handle hoCallBack tWebNavigateData NavigateData
        Get NamedValueAdd NavigateData.NamedValues "ExportFormat" "PDF" to NavigateData.NamedValues
        Get NamedValueAdd NavigateData.NamedValues "AllPages" True to NavigateData.NamedValues
        Send ExportReportToDownloadURL of oReport NavigateData.NamedValues
    End_Procedure
End_Object

Notes

  • Available for DataFlex 18.1 and higher