Hy everone,
how to insert a summary in a report aris?
Congrats
Hello, if you mean "Table of content",
This code creates it :
function indexPage(){ ofl.BeginSection(false, Constants.SECTION_INDEX); //Defines the style for the four levels in the TOC ofl.SetTOCFormat(0, "Arial", 11, Constants.C_BLACK, Constants.C_WHITE, Constants.FMT_LEFT | Constants.FMT_BOLD | Constants.FMT_TOCENTRY0, 0, 0, 0, 0); ofl.SetTOCFormat(1, "Times New Roman", 11, Constants.C_BLACK, Constants.C_WHITE, Constants.FMT_LEFT | Constants.FMT_BOLD | Constants.FMT_TOCENTRY1, 5, 5, 2, 2); ofl.SetTOCFormat(2, "Times New Roman", 11, Constants.C_BLACK, Constants.C_WHITE, Constants.FMT_LEFT | Constants.FMT_TOCENTRY2, 10 , 5, 2, 2); ofl.SetTOCFormat(3, "Times New Roman", 10, Constants.C_BLACK, Constants.C_WHITE, Constants.FMT_LEFT | Constants.FMT_TOCENTRY3, 15, 5, 2, 2); //Adds the table of content ofl.OutputField(Constants.FIELD_TOC, "Arial", 10, Constants.C_BLACK, Constants.C_WHITE, Constants.FMT_LEFT); ofl.EndSection(); }
Hope it helps.
Best Regards