AJ

Hello. I am experiencing serious trouble creating a proper table of contents (toc) in my ARIS reports. I use the scripting editor for doing this. The input is a set of EPC models, and the output is a set of Word or PDF documents (one for each model). 

The script uses three sections. The second section writes the TOC page

 

// the variable out holds the ArisOutput object

out.BeginSection(false, Constants.SECTION_COVER);
// coverpage goes here...
out.EndSection(); 

out.BeginSection(false, Constants.SECTION_INDEX);
// TOC code goes here: 



out.BeginTable(100, Constants.C_DARK_GREEN, Constants.C_TRANSPARENT, Constants.FMT_CENTER | Constants.FMT_VCENTER, 0);
            out.TableRow();
                out.SetFrameStyle(Constants.FRAME_TOP, 30);
                out.SetFrameStyle(Constants.FRAME_LEFT, 30);
                out.SetFrameStyle(Constants.FRAME_RIGHT, 30);
                out.SetFrameStyle(Constants.FRAME_BOTTOM, 30);
                out.TableCellF("TABLE OF CONTENTS", 100, Layouts.CONTENTS_PAGE_TITLE);
        out.EndTable("", 100, "Arial", 10, Constants.C_DARK_GREEN, Constants.C_TRANSPARENT, 0, Constants.FMT_CENTER | Constants.FMT_VCENTER, 0);
        out.OutputLnF("", Layouts.NORMAL);
        out.SetAutoTOCNumbering(true);
        out.OutputField(Constants.FIELD_TOC, "Arial", 10, Constants.C_BLACK, Constants.C_WHITE, Constants.FMT_LEFT);
out.EndSection(); 

// Finally, we draw the contents: 
out.BeginSection(false, Constants.SECTION_DEFAULT);
// ...
out.EndSection();

As far as I can see, this is done correctly. The toc is output to the document, but the page numbers are not updated! So for each heading in the toc, the page no. is the same all the way down. Very frustrating!

Any ideas on how to solve this problem? I am using ARIS IT Architect 7.1.0.423484

by Rahul Nagar
Posted on Tue, 09/14/2010 - 14:59

Problem with Auto Table of Content for Word document

 

Hello all, we are experiencing problem with generating Automatic Table of Content for MS Word document using ARIS methods.

VEA Script for Auto-TOC generation:

 

 Following is the code snippet that we are using to generate the Auto-TOC.

  • To create Auto TOC:

  • To create a Style Sheet for TOC entry:

ScreenHunter_02 Sep. 13 17.44.jpg

  • To apply the defined style sheet to the output line:

ScreenHunter_03 Sep. 13 17.47.jpg

  • The hyperlinks in the TOC takes you to the destined page, however, the page numbering in the TOC is incorrect, it is as follows:

ScreenHunter_04 Sep. 13 17.51.jpg

  • There is one more strange side of this TOC problem, the page numbering changes as we change the page format. The output snapshot shown above is for Letter Size page format. While the snapshot shown below is for A5 size:

ScreenHunter_06 Sep. 13 18.35.jpg

ARIS Standard Script for Auto-TOC:

  • I would like to bring to your notice that even the ARIS Standard reports have this problem. I tried the report ‘Output model information’ and that report also has this problem. The output snapshot is as shown below:

ScreenHunter_08 Sep. 13 18.43.jpg

TOC with Script designer (WYSIWYG):

  • I also tried the Script designer tool of ARIS (i.e. WYSIWYG), shown below is the script design that we created using script designer.

ScreenHunter_09 Sep. 13 18.46.jpg

  • As we can see we have included the Table of Content field in the script. The output is as follows:

ScreenHunter_10 Sep. 13 18.53.jpg

NOTE: This issue is only with Word(.DOC) and Rich Text File(.RTF) document, for PDF page numbering is perfect.

0
by Martin Schröder
Badge for 'Contributor' achievement
Posted on Tue, 09/14/2010 - 19:46

Rahul has given the answer in part: "...the page numbering changes as we change the page format. "

To me it seems that Word is the culprit, as the generated TOC is a field that needs an event to trigger an update of page numbering, like highlighting it and pressing [F9] or changing the printing page size.

Maybe in Aris VisualBasic script you can manipulate the DOC afterwards and execute something like

Range.Fields.Update

recursively on all sections, but in Aris javascript ?

Regards, Martin

0
by Mia van Rooyen
Posted on Fri, 06/10/2011 - 14:21

Has this issue been resolved? We are experiencing the same at our client site. Tx

0
by Bernd Schickerbauer
Posted on Fri, 08/26/2011 - 14:35

Same problem here.

Any solution found so far?

Does this problem occur in 7.2 too?

 

BR

0
by Brooke Baker
Posted on Fri, 09/02/2011 - 07:06

It appears that the problem continues in 7.2

:(

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