JN

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

by Jef Martens MSc
Posted on Sun, 11/30/2014 - 17:24

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!

0
by JeyaKarthik N R Author
Posted on Mon, 12/15/2014 - 13:01

In reply to by martens

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

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock