none
Copying powerpoint presentation to Sharepoint-Online corrupts customXML Data RRS feed

  • Question

  • Hello,

    Our company develops and distributes a Powerpoint Add-In.

    We received a Powerpoint Presentation from our customer from his Sharepoint online server and wanted to place it with our Powerpoint AddIn on our SharePoint Online server. The AddIn adds some customXmls to the presentation and to the slides to a local copy of the presentation and finally using a simple File.Copy command it copies the presentation to a Sharepoint folder which is accessed by webDAV.

    When I try to open the presentation file from Sharepoint with the "Open XML SDK 2.5 Productivity Tool For Microsoft Office" it shows the message: "Cannot open file: The file contains corrupt data.
    The depending source presentation file (i.e. the local copy) can be opened with the productivity tool without any problems.
    Both presentation can be opened with Powerpoint without any problems

    That's confusing me: When I open and save the presentation with Powerpoint once the file was manipulated and saved by OpenXml SDK, I had no problem copying the presentation to the sharepoint. The file was not corrupted!

    What' s the difference between the two versions of the presentation: one saved by OpenXml SDK, the other one by Powerpoint?

    Sure, obviously the reference ids are renumbered, but that did not make any problems until now. There must be another difference, which corrupts the presentation saved by the OpenXmlSDK.

    About help or even just an idea, which triggers this error, I would be very happy. For analysis, I can provide sample files.

    Also a tip for a better analysis tool is very welcome ...

    Thank you for your help,
    Karl

    Wednesday, November 6, 2019 11:13 AM