Hi Support Team,
I am working on a application now which is merging document.
If I am using “USE_DESTINATION_STYLES” to merge my documents, then the header layout + TOC looks exactly how it should looks like as I can configure them in my first documet.
But if I merge documents + “USE_DESTINATION_STYLES” + the getMailMerge().execute method, then the layout is getting broken.
If I just remote getMailMerge, then the layout is perfect, but of course my metadata is not replaced.
I have uploaded the documents + source codes, just review the layout with numeric headers and TOC numbers. You will see that “LayoutNOToK” always have 1 as chapter number, even the document has 4 chapters.
“LayoutOK” works fine, but metadata is not replaced.
Any idea how I can fix it?
Btw, even also interesting:
The Layout looks ok on Office 2013 b ut looks wrong in Office 2016
I need the layout on Office 2016 with mailMerge.
Your help is appriciated.
office2013 vs office2016.png (28.8 KB)
Layout_Bug.zip (506.7 KB)