Hi everyone,

Busy building a script that includes the Headings of the report in the Table of Contents.

I have defined it as follows:

OUT.DefineF("HEADING_1", CS_FONT_ARIAL, 12, Constants.C_BLACK, Constants.C_TRANSPARENT, Constants.FMT_BOLD | Constants.FMT_LEFT | Constants.FMT_TOCENTRY0 | Constants.FMT_LINKTARGET, 0, 0, 0, 0, 0, 0);

    OUT.DefineF("HEADING_2", CS_FONT_ARIAL, 12, Constants.C_BLACK, Constants.C_TRANSPARENT, Constants.FMT_BOLD | Constants.FMT_LEFT | Constants.FMT_TOCENTRY1 | Constants.FMT_LINKTARGET, 0, 0, 0, 0, 0, 0);

    OUT.DefineF("HEADING_3", CS_FONT_ARIAL, 11, Constants.C_BLACK, Constants.C_TRANSPARENT, Constants.FMT_LEFT | Constants.FMT_TOCENTRY2 | Constants.FMT_LINKTARGET, 0, 0, 0, 0, 0, 0);

    OUT.DefineF("HEADING_4", CS_FONT_ARIAL, 11, Constants.C_BLACK, Constants.C_TRANSPARENT, Constants.FMT_LEFT | Constants.FMT_TOCENTRY3 | Constants.FMT_LINKTARGET, 0, 0, 0, 0, 0, 0);

    OUT.DefineF("HEADING_5", CS_FONT_ARIAL, 10, Constants.C_BLACK, Constants.C_TRANSPARENT, Constants.FMT_LEFT | Constants.FMT_TOCENTRY4 | Constants.FMT_LINKTARGET, 0, 0, 0, 0, 0, 0);

However, when I generate the report, my headings look like:

  1. DEFINITIONS / ABBREVIATIONS / LEGENDS / ACTIVITY TABLE ELEMENTS

 

    1. Definitions / terminology / word descriptions

 

The numbering is fine, but "HEADING_2" should be Bold, and it is not.

How do I fix this?

Thanks,

Willem