Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Merge-WordDocument on documents with WordCustomProperties leads to unreadable error #50

Open
drtyhlpr opened this issue May 5, 2021 · 0 comments

Comments

@drtyhlpr
Copy link

drtyhlpr commented May 5, 2021

Thanks for your great script!

I have created two word documents with custom word properties. If I merge the documents with Merge-WordDocument no errors occur but if I try to open the generated output document I get a Word error: "Word found unreadable content in xxx.docx. Do you want to recover the contents of this document?". The recovery works fine but the fixed document is quite strange:

The recovered (output) document only seems to contain the WordCustomProperties of the 1st Document BUT I can see the (merged) WordCustomProperties of the 2nd Document as fully working Fields (even the toggle field code looks fine) but the WordCustomProperties of the 2nd Document are definitely not listed in the (recovered output) document's custom word properties....

if you need further information or code please tell me. I am doing some tests with adding the 2nd document's WordCustomProperties manualy to the 1st document etc.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant