Forum


Replies: 5   Views: 3386
Toc: not working links to chapters
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 TieBreakTech  · 05-06-2018 - 09:22

Hi,

when I export a document from html to MS Word, the links in the table of contents do not work.

The issue I find with MS Word (2016) on Windows is that the link in the TOC contains the path of the .docx file I create and download from my web service.

If I open the file using Open Office on Linux, it works.

The link is like:

file:///c:\users\username\downloads\filename.docx#correct_link_to_the_chapter

I think that my problem is that I need to remove "file:///c:\users\username\downloads\filename.docx" from the link.

Does anybody has some suggestions on how to do it?

Thanks!

Edoardo