Manuel
Manuel

Reputation: 37

Getting a corrupted Powerpoint file that is created using OOXML and C#

My code opens a Powerpoint presentation, adds some shapes to that, saves it and then inserts that presentation into another final presentation file. It works fine and I get not error using the OOXML validator object. However, when I open the final presentation, Power Point gives me the option to repair the file because it is corrupted.

My code to create the shapes is located in this link: http://social.msdn.microsoft.com/Forums/en-US/oxmlsdk/thread/4a2f50df-7e75-435c-9974-7066e125dd03

My code to copy one presentation into another is located in this link: http://social.msdn.microsoft.com/Forums/lv-LV/oxmlsdk/thread/8d014ba5-3566-4d44-ac22-229f2bbd442a

I have been dealing with this error for months.

Upvotes: 1

Views: 1121

Answers (1)

mrówa
mrówa

Reputation: 5771

I'd encourage you to use Open XML 2.0 SDK Productivity Tool, which is part of OpenXML SDK - it helped me to find where are the problems in my resulting files. Power Point should tell around which node the problem exists. Unfortunately, the tool won't tell you if there is an error if trying to verify the root node - you'd have to browse the xml tree a little, maybe, to find exact problem.

Upvotes: 1

Related Questions