ReportPageLayers - cDRReport¶
Methods - Properties - Events
Method Type¶
Function
Return Type¶
Array of tDRPageLayerInfo values
Arguments¶
| Argument | Description |
|---|---|
sReportID |
ID of the report. Can be ID of the main report or the ID of a sub-report. This argument can be passed as an empty string. The empty string can be written as C_USEMAINDRREPORTID. |
Description¶
Returns an array of tDRPageLayerInfo elements. The array is the result of a number of PageLayerId and PageLayerName calls. The array provides a better overview of the defined page layers in the report.
This method cannot be used before the report OCX object is initialized. The COM object creation is performed as part of the OpenReport method if it has not been done beforehand.
DataFlex Framework Usage¶
- Web
- Windows
- FlexTron
Sample¶
Object oReport is a cDRReport
Set psReportName to 'MyReport.dr'
End_Object
Object oOpenReportButton is a Button
Set Label to 'Open Report'
Procedure OnClick
String sReportId
tDRPageLayerInfo[] DefinedPageLayers
Integer iElements iElement
Get OpenReport of oReport to sReportId
If (sReportId <> '') Begin
Showln 'Report ID Main Report: ' sReportId
Get ReportPageLayers of oReport sReportId to DefinedPageLayers
Move (SizeOfArray(DefinedPageLayers)) To iElements
For iElement From 0 to (iElements - 1)
Showln iElement ' ' DefinedPageLayers[iElement].sGUID ' ' DefinedPageLayers[iElement].sName
Loop
Send CloseReport of oReport sReportId
End
End_Procedure
End_Object