I am generating a word document with table of contents using itext. The table of contents are visible only when i select the content and press F9. So I wrote a macro to do that. I would like to invoke this macro programatically after the report is generated by itext.