The Table Of Contents uses predefined text styles and paragraph styles. These styles can be modified using the ParaStyles and FontStyles tags. This article provides a simple example of this. 


Note: The indentation of sub-sections in the Table of Contents is fixed, and cannot be modified.


Example Configuration

<Report>
 <ParaStyles>
    <ParaStyle name="TOC1" alignment="left" spaceBefore="0"/>
    <ParaStyle name="TOC2" alignment="left" spaceBefore="0"/> 
 </ParaStyles>
 <FontStyles>
    <FontStyle name="TOC1" style="bold" font="Times New Roman" size="24" color="blue" />
    <FontStyle name="TOC2" style="bold" font="Times New Roman" size="20" color="blue" />
 </FontStyles>
  <TableOfContents/> 
  <Section title="Introduction">
  </Section>
  <Section title="Chapter 1">
    <Section title="This is a section">
    </Section>
    <Section title="This is another section">
      <Section title="This is third level section">
      </Section>
    </Section>
  </Section>
</Report>


Result


What's Next? 

Learn more about ParaStyles and FontStyles in the XML Tag Reference - Report specific section of the application Help.