ComponentOne VSView Reporting Edition
Type Property

Returns the Section type (for example, vsrPageHeader, vsrDetail).

Syntax

val% = section.Type

Remarks

The section type is equivalent to its index in the control's Sections collection. The control defines symbols for these indices to improve readability. The symbols defined are:

 

Constant

Value

Description

vsrUndefined

-1

Undefined. When new fields are created using the control's Fields collection, they don't belong to any sections.

vsrDetail

0

Detail section: repeated for every record in the source recordset.

vsrHeader

1

Report header section: appears once, in the beginning of the report.

vsrFooter

2

Report footer section: appears once, in the end of the report.

vsrPageHeader

3

Page header section: appears at the top of every page, depending on the setting of the Layout's PageHeader property.

vsrPageFooter

4

Page footer section: appears at the bottom of every page, depending on the setting of the Layout's PageFooter property.

vsrGroupHeader1

5

First group header section: appears at the top of every top-level group.

vsrGroupFooter1

6

First group footer section: appears at the bottom of every top-level group.

 

The Type property allows you to inspect a Section object and determine its type. For example:

Debug.Print theSection.Type

  0 ' vsrDetail

Data Type

SectionTypeSettings (Enumeration)

 

 


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

Product Support Forum  |  Documentation Feedback