I recently added Open Office support to our application. It has worked seamlessly in every case except one. When I construct a PresentationEx with the attached ODP, I receive an UnsupportedFormatException in spite of the ODP working fine in Impress itself (though I should say that the document was originally a PowerPoint document that I converted for testing).
Aspose.Slides.UnsupportedFormatException : Not a Open Office presentation.
----> Aspose.Slides.Odp.OdpReadException : Error reading “content.xml” xml part
----> System.FormatException : Input string was not in a correct format.
at .…ctor(Stream stream)
at Aspose.Slides.Pptx.PresentationEx.a(Stream stream)
at Aspose.Slides.Pptx.PresentationEx.(Stream stream)
at Aspose.Slides.Pptx.PresentationEx…ctor(String file, LoadOptions loadOptions)
at Aspose.Slides.Pptx.PresentationEx…ctor(String file)
Converters\Powerpoint2007.cs(22,0): at DigiData.Media.OfficeConversion.Powerpoint2007Converter.Convert(String input, String output, Int32 maxWidth, Int32 maxHeight)
Powerpoint_Tests.cs(87,0): at DigiData.Media.OfficeConversion.Powerpoint_Tests.Convert_OpenImpressFails()
–OdpReadException
at ..(XmlDocument document, String fileName, XmlSchemaCollection schemaCollection, Boolean hideConditionalComments)
at ..()
at .…ctor(Stream stream)
–FormatException
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
at System.Double.Parse(String s, NumberStyles style, NumberFormatInfo info)
at ..( source, String AttributeName, String defaultValue)
at ..()
at ..()
at ..()
at ..()
at ..()
at ..()
at ..()
at ..()
at ..(XmlDocument document, String fileName, XmlSchemaCollection schemaCollection, Boolean hideConditionalComments)
I am using a newly-downloaded Aspose.Slides DLL - apparently v6.3.0.0. Any ideas to get this to work would be most appreciated!