Categories > OpenTBS with DOCX >

OpenTBS and custom fields + table of contents

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Nicolas
Date: 2013-07-04
Time: 21:21

OpenTBS and custom fields + table of contents

Hi,

I haven't found any topic about my problem yet, I would think it to be rather an common issue though.

I have made a template and it's working quite fine (except that I meet the same problem discussed here : http://www.tinybutstrong.com/forum.php?thr=3140 but it's not that bad), but the one thing it's not doing is :
updating custom fields and ToC

And it's especially sad as I have a Table of Contents in my template + total number of pages in the footer, and I cannot get those 2 fields to be updated.

Any idea ? do I have to remove them / insert them through openTBS ? if yes, how ? Can I insert them another way ?

Thanks a lot
By: Skrol29
Date: 2013-07-05
Time: 01:09

Re: OpenTBS and custom fields + table of contents

Hi Nicolas,

I haven't found a solution for the Table Oe Contents yet.
The TOC is a Word field that is not automatically updated, unfortunately you have to update it manually using Ms Word.

That's why I do not use TOC for templates that may have section disappearing.

But there may a be a solution that I have not tested yet: you may add extra TBS fields in the TOC in order to update the convenient lines of the TOC.
It seems that each item is a Ms Word paragraph.
By: Nicolas
Date: 2013-07-05
Time: 09:25

Re: OpenTBS and custom fields + table of contents

That's sad.

I agree it's easy to open the docx once generated, and make a CTRL+A and F9 but it's quite painful if you generate 100 docs and have to open & update them all ...

And my problem is not even with sections disappearing, it's just that sometimes, adding [onshow.XXXX] 10 times in a page, and replacing it with a short string makes the doc one page shorter, and thus the paging is wrong.

I don't know if it's possible, but it would be a nice feature to add in OpenTBS.
By: Paul
Date: 2016-07-22
Time: 10:24

Re: OpenTBS and custom fields + table of contents

In the template doc, create a macro called AutoOpen with the following command:
ActiveDocument.TableOfContents(1).Update

The TOC will be updated every time the merged document is opened :)