ComponentOne FlexReport for WinForms
Working with FlexReport / Adding Sub-sections
In This Topic
    Adding Sub-sections
    In This Topic

    Sub-sections are the additional sections that can be added to any section of a report. A FlexReport generally contains - Detail, Header, Footer, PageHeader, Page Footer, Group Header and Group Footer - sections as described in Sections of FlexReport.

    Each of these sections contains atleast one sub-section, but you can add as many sub-sections in a section.

    To add a sub-section in the Header section of a report, the following code should be used:

     'create a subsection in the header section
         Dim ss As SubSection = C1FlexReport1.Sections.Header.SubSections.Add()
      'set height to 10 mm
         ss.Height = 10 * 1440 / 25.4
    
    //create a subsection in the header section
       SubSection ss = rep.Sections.Header.SubSections.Add();
    // set height to 10 mm
       ss.Height = 10 * 1440 / 25.4;