-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating TOC page numbers #951
Comments
Hi there I am dealing with something similar, and I am investigating Macros - all these things (bookmarks, titles, etc) are "Fields" - in Word you can set an option to "Update fields before printing" and "Update linked data before printing" - if the person doesn't have that set, then they either have to be updated manually or you can have a macro that runs at open or close... |
@mattsagen Any luck solving this one? |
maybe we should just implement http:https://www.datypic.com/sc/ooxml/e-w_updateFields-1.html |
implemented in 0.14 |
That was super fast. Thanks @troosan. Sry I am new to Git/hub how do I get hold of 0.14 Cheers! |
@deepakgup you either wait for the final 0.14 version or you point to the development branch. |
@sivaram-blr Hi, I am generating TOC in phpword doc but it dosent generating page numbers or indexing numbers ..can you please help out me on issue. |
Where can I get an example code on how to make a table of contents? |
see answer to same question in #707 |
Hi @troosan |
@brucelin0325 FYI, your index can be built using XE and INDEX fields, see http:https://phpword.readthedocs.io/en/latest/elements.html#fields |
Really Thank you @troosan
My goal is create TOC looks like this one. Can I add normal text section between TOC? I'd appreciate if you can give me the solution. |
@brucelin0325 That's not a TOC but an index (with XE (index entry) and INDEX fields. |
Hello, I would like to know how to present special characters (<,>,> =, <=, among others) of correct way, I have tried several unsuccessfully. |
Unable to display page numbers in TOC even after setting setUpdateFields as true. |
the same unable to display page numbers in TOC even after setting setUpdateFields as true |
same. if i call |
Ho, I'm using 0.18.3 version but still I'm not able to display page number in TOC, neither available in Word nor LibreOffice. Could someone help me ? |
Hello Team,
I am generating docx using template. I am dynamically updating few tables in template. So on each scenario table content may be short or long so total page numbers will differ on each document that gets created.
And list of headings(TOC items) remain always same, but their content will vary dynamically.
Now what is happening is when click one heading in TOC, it takes me to right position. But the page number in TOC is not matching with actual page number of that.
Note: addTOC function helps to add new TOC item. I am looking something like updateTOC to update the existing TOC items in TEMPLATE based on dynamic content i write.
So i am looking for help to "Update the page numbers" at just before end of document created.
Thanks
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: