Skip to main content

TdxSpreadSheetReportDesigner.SetDetailSection(TRect,Integer) Method

Adds a detail section to the displayed report template.

Declaration

procedure SetDetailSection(const ABounds: TRect; ALevel: Integer = -1);

Parameters

Name Type
ABounds TRect
ALevel Integer

Remarks

Call this procedure to create a new detail section corresponding to the cell range whose size (in cells) and position (in row and column indexes) within the report template are passed as the ABounds parameter. The detail section normally contains report fields inserted as the report function arguments.

In the case of master-detail reports, you can pass the detail section level as the optional ALevel parameter. If the displayed report template already has the detail section at the same level, calling the SetDetailSection procedure changes its size and position according to the ABounds parameter value.

The resulting report document contains the detail section for which all rows or columns are repeated down or to the right, respectively, for each bound dataset record on the respective detail level. The actual direction of “unfolding” all the detail section in the built report depends on the Options.Orientation property value.

To allow end-users to define detail template sections, you can link the DetailSection and DetailLevel commands to UI elements in your application.

Note

If you use the dataset record grouping functionality, create the group header and footer sections only within a detail section with the matching detail level.

See Also