ComponentOne VSView Reporting Edition
Sections Property

Returns the current report's Sections collection.

Syntax

val% = [form!]VSReport.Sections

Remarks

The Sections collection contains all Section objects defined in the current report. The collection has the following methods and properties:

 

Item

Returns a Section object, indexed by section type.

Count

Returns a count of all Section objects in the collection.

 

Note that the Sections collection does not have Add or Remove methods. The number of sections in a report is determined by the number of Groups. Every report has five "fixed" sections (detail, report header, report footer, page header, and page footer) plus two sections per group (a group header and a group footer). The table below shows the relationship between the sections and groups for a typical report:

 

Constant

Value

Description

vsrDetail

0

Detail section, repeated for each record in the recordset. Always present.

vsrHeader

1

Report header section. Always present.

vsrFooter

2

Report footer section. Always present.

vsrPageHeader

3

Page header section. Always present.

vsrPageFooter

4

Page footer section. Always present.

vsrGroupHeader1

5

First group header. Present in reports with one or more groups.

vsrGroupFooter1

6

First group footer. Present in reports with one or more groups.

vsrGroupHeader2

7

Second group header. Present in reports with two or more groups.

vsrGroupFooter2

8

Second group footer. Present in reports with two or more groups.

Data Type

ISectionCollection

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback