Replies: 2   Views: 170
Cross reference with no context

Posted by admin  · 01-07-2020 - 07:41


phpdocx 10 added the modifiers option to addCrossReference (, so you can set a custom modifier when adding a cross-reference,  \h is the default one, but you can use others such as \w \h, \r \h, \n \h... (unfortunately there's no list with all available options)

We recommend you to generate the cross-reference using MS Word to get the exact modifier you want to use (for example extracting the DOCX and opening word/document.xml). If you open a support ticket ( with a DOCX sample of the output you want to get, and the dev team will generate a custom script.