This project is read-only.

Not possible to add content before the table of content

May 6, 2013 at 2:51 PM

I'm trying to put a front page in a separate section before the main content, because the front page should not contain a header and footer like the other pages of my exported document.

As soon as i add content before i add the toc, the table of content is not added to the document.
Can anyone tell me why this fails? Is this maybe a bug?


Jun 18, 2013 at 1:30 PM
Hey Jan,

Not sure if you resolve this problem but I fixed it by declaring more then one section:
  // Section for the front page
  $front = $PHPWord->createSection();
  // Section for the rest of the documents
  $section = $PHPWord->createSection();