Forum


Replies: 1   Views: 3184
$docx->addtablecontents()
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by Squad internet  · 16-10-2012 - 15:31

Hi (again),

I'm almost done but I'm having a issue with the creation of the TOC.
A little snipset:

[code]
$docx->addTableContents();
$docx->addTitle('SomeTitle', array(
'val' => 1,
'u' => 'single',
'font' => 'Blackadder ITC',
'sz' => 22));
.........
[/code]

Now when I download and open the docx file, I can see the TOC is requesting for a update (press F9)
Also I see my title's rendered correctly.

However when I update my TOC, it says that no "words" can be found, and I have to add all the titles manually to the TOC.
Is this normal behaviour or am I doing something wrong?