TOC not working

Jun 22, 2011 at 8:00 PM

I tried to use the TitleTOC.php example in the PHPWord but it is not working. If I remove $section->addTOC($fontStyle); then the rest of the example works. What is the reason? Thank you,