Hi,
I am stuck with creating Table of Contents. The code in this post is not working. Can any one provide other way of adding table of contents which should print name of L1,L2,L3 objects
I even tried by adding Context.setProperty("use-new-output", true); but still its not working
Hi, there are known problems due to the design of Word and the (un)ability to force a document reload after creating the document. You can choose to output to PDF to circumvent issues, or manually open the document and do a table refresh.
Alternatively, you can also do "Print Preview", which reloads all interactive fields as well.
Good luck!
Thanks Jef !!
I got that problem resolved by adding
Context.setProperty("use-new-output", true);
Before creation of output object.
The thing is output object Constants.OUTWORD creates an instance of RTF output object.
Only by adding the above line, it creates an output object of doc type. Only the Doc Field are updated automatically