stephi01
asked on
Office Open XML file <file_name> cannot be opened
I create a docx file.
Type "This is a test"
save as test.docx
rename to test.zip
extract to folder called test
compress folder as test.zip
rename to test.docx
When I open the file I recieve "Office Open XML file <file_name> cannot be opened because there are problems with it's contents. "
Error Details says "the file is corrupt and cannot be opened.
Any ideas on what i am doing incorrectly or how to resolve it?
Type "This is a test"
save as test.docx
rename to test.zip
extract to folder called test
compress folder as test.zip
rename to test.docx
When I open the file I recieve "Office Open XML file <file_name> cannot be opened because there are problems with it's contents. "
Error Details says "the file is corrupt and cannot be opened.
Any ideas on what i am doing incorrectly or how to resolve it?
ASKER
I have an app that uses a custom xml to input data into my doc via content controls. Unfortunately the info in the controls will not update when the xml data is updated.
Unless someone can suggest a better way I am trying to have the app create the custom xml in a directory that also contains the word doc info then compress that directory to rename it .docx.
The app would be recreating the doc everytime with updated info.
Unless someone can suggest a better way I am trying to have the app create the custom xml in a directory that also contains the word doc info then compress that directory to rename it .docx.
The app would be recreating the doc everytime with updated info.
Do not extract the files after renamed it to zip
you have to change your settings directly in the zip folder!
you have to change your settings directly in the zip folder!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
perfect! Thanks!
Do you want to zip the document? This is not possible by renaming it to .zip