Skip to content

GenerateReportHTML - cDRReport

Methods - Properties - Events

Method Type

Function

Arguments

None

Returns

String(https://docs.dataflex.dev/LanguageReference/String_Command/)]

Description

Opens a report using the OpenReport method, then calls the HTMLPreviewData method, passing the current argument size (minus 10 bytes) to get an array of strings. These strings need to be concatenated and decoded from Base64 to normal text before they can be used.

The method is called from the ShowReport method defined in the cWebDRReportViewer class.

DataFlex Framework usage

  • Web
  • Web controls in a FlexTron application

Sample

Object oMyReport is a cDRReport
    Set psReportName to 'CustomerList.dr'
End_Object

Object oViewer is a cWebDRReportViewer
    Set phoReport to oMyReport
End_Object

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

Notes

  • Available for DataFlex 17.1 and higher