Share via


ReportDesign.addSection Method

Adds a report section to a design.

Syntax

public ReportSection addSection(
    ReportBlockType sectionType, 
   [TableId tableId, 
    FieldId fieldId])

Run On

Called

Parameters

  • tableId
    Type: TableId Extended Data Type
    If the sectionType parameter is set to Header, Body, or Footer, the table property of the section group that the section belongs to; optional.
  • fieldId
    Type: FieldId Extended Data Type
    If the sectionType parameter is set to Header, Body, or Footer, the dataField property of the section group that the section belongs to; optional.

Return Value

Type: ReportSection Class
The section that is created.

Remarks

This method creates a generated design if it does not already exist. If the sectionType parameter is set to Header, Body, or Footer, this method creates a section group if it does not already exist.

See Also

ReportDesign Class

ReportSectionGroup.addSection Method