Hallo, i am scripting an Word-Report for my ARIS Models (ARIS Business Architect 7.1). I have problems with creating a Table of Content, i have following code:
//* TOC
ooutfile.BeginSection(297, 210, 20, 15, 20, 27, 45, 10, false, Constants.SECTION_INDEX);
setHeaderFooter(pageCounter);
pageCounter++;
ooutfile.SetAutoTOCNumbering(true);
//Output text
ooutfile.SetTOCFormat(0, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, Constants.FMT_LEFT,30,30,30,30);
ooutfile.SetTOCFormat(1, "Arial", 9, Constants.C_BLACK, Constants.C_TRANSPARENT, Constants.FMT_LEFT,30,30,30,30);
ooutfile.SetTOCFormat(2, "Arial", 8, Constants.C_BLACK, Constants.C_TRANSPARENT, Constants.FMT_LEFT,30,30,30,30);
ooutfile.SetTOCFormat(3, "Arial", 7, Constants.C_BLACK, Constants.C_TRANSPARENT, Constants.FMT_LEFT,30,30,30,30);
ooutfile.OutputLn("Table of Contents", "Arial", 14, Constants.C_BLACK, Constants.C_WHITE, Constants.FMT_BOLD, 0);
//Adds table of content
ooutfile.OutputField(Constants.FIELD_TOC, "Arial", 10, Constants.C_BLACK, Constants.C_WHITE, Constants.FMT_LEFT);
ooutfile.EndSection();
but it does not create a Table of Content.... can anyone help? :)
Eva Klein on
Hi Patrick,
probably, this post could help you.
Regards
Eva