DisplayReport - cDRReport¶
Methods - Properties - Events
Method Type¶
Procedure
Arguments¶
None
Description¶
Displays the report in the report viewer.
At the beginning of the display, the event OnDisplayReport is fired. You can cancel the display by setting the pbCanceled property to true.
Sends the Popup message to the object-id stored in the phoStatusPanel if pbShowStatusPanel is true.
A report must be opened before the DisplayReport message can be sent to the report object. The report id is retrieved from psReportId.
At the end of the method, the event OnPostDisplayReport is fired.
This property cannot be used before the report OCX object is initialized. The COM object creation is, when not done before, created as part of the OpenReport method.
DataFlex Framework usage¶
- Windows
- Windows controls in a FlexTron application
Sample¶
Object oReport is a cDRReport
Set psReportName to 'MyReport.dr'
End_Object
Object oRunReportButton is a Button
Set Label to 'Run Report'
Procedure OnClick
String sReportId
Get OpenReport of oReport to sReportId
If (sReportId <> '') Begin
Send DisplayReport of oReport
End
End_Procedure
End_Object