Skip to content

GenerateDownloadLinks - cDRReport

Methods - Properties - Events

Method Type

Function

Arguments

None

Returns

String[]

Description

Open the report specified in psReportName via the OpenReport method. If successful, peImageType is assigned to the drImageExportOptions structure and used for the file extension of the export filenames. Each page of the report is exported into a file and converted into a download link that can be used by the cWebDRReportViewer class.

DataFlex Framework usage

  • Web

Sample

Object oMyReport is a cDRReport
    Set psReportName to "CustomerList.dr"
    Set peImageType to C_drGIF
End_Object

Object oViewer is a cWebDRReportViewer
    Set phoReport to oMyReport
    Set peMode to C_IMAGEOUTPUT
End_Object

Object oRunReportButton is a cWebButton
    Procedure OnClick
        Send ShowReport of oViewer
    End_Procedure
End_Object

Notes

  • Available for DataFlex 17.1 and higher