Dear Community,
at the moment i am writing an aris report. The next point is to create a table of content. I am new in this section and dont really know how to do this.
Can someone post or give me a link to a good TOC tutorial?
Thanks a lot
This is my Code:
----------------------------------------------------------------------------
output.BeginSection(true, Constants.SECTION_INDEX);
output.SetAutoTOCNumbering(true);
//Defines the style for the four levels in the TOC
output.SetTOCFormat(0, "Arial", 12, Constants.C_BLACK, Constants.C_WHITE, Constants.FMT_LEFT | Constants.FMT_BOLD | Constants.FMT_ITALIC, 0, 0, 0, 0);
output.SetTOCFormat(1, "Arial", 12, Constants.C_GREEN, Constants.C_WHITE, Constants.FMT_LEFT | Constants.FMT_BOLD, 5, 5, 2, 2);
//Output text
output.OutputLnF("Inhaltsverzeichnis","TOC");
//Adds the table of content
output.OutputField(Constants.FIELD_TOC, "Arial", 10, Constants.C_BLACK, Constants.C_WHITE, Constants.FMT_LEFT);
output.EndSection();
--------------------------------------------------------------------
But doesnt work