Hello,
I have to split a presentation into multiple files (1 file per slide) and I have a problem with slides containing a table element.
Indeed, the split seems to working but when I'm trying to open the new file, The method "Presentation.Open(filestream)" throw me a "NullReferenceException" if it contains a table.
System.ArgumentNullException occurred
HResult=0x80004003
Message=Value cannot be null.
Source=<Cannot evaluate the exception source>
StackTrace:
at Syncfusion.Compression.Zip.ZipArchive.Open(Stream stream, Boolean closeStream)
at Syncfusion.Presentation.FileDataHolder.GetStreamFromTemplateZip()
at Syncfusion.Presentation.TableImplementation.Table.get_TableStyle()
at Syncfusion.Presentation.Parser.ParseTableProperties(XmlReader reader, Table table)
at Syncfusion.Presentation.Parser.ParseTable(XmlReader reader, Table table)
at Syncfusion.Presentation.Parser.CheckGraphicData(Stream stream, Shapes shapeCollection)
at Syncfusion.Presentation.Parser.ParseShapeTree(XmlReader reader, Shapes shapeCollection)
at Syncfusion.Presentation.Parser.ParseCommonSilde(XmlReader reader, BaseSlide slide)
at Syncfusion.Presentation.Parser.ParseSlide(XmlReader reader, Slide slide)
at Syncfusion.Presentation.FileDataHolder.ParseSlide(Slide slide, String slidePath)
at Syncfusion.Presentation.FileDataHolder.ParseSlides()
at Syncfusion.Presentation.FileDataHolder.Read()
at Syncfusion.Presentation.Presentation.Open(Stream fileStream)
at ConsoleApp1.Program.Split(Byte[] fullTemplate) in c:\users\bouil\documents\visual studio 2017\Projects\ConsoleApp1\ConsoleApp1\Program.cs:line 36
at ConsoleApp1.Program.Main(String[] args) in c:\users\bouil\documents\visual studio 2017\Projects\ConsoleApp1\ConsoleApp1\Program.cs:line 12
I've attached to this post a code sample that you can use to reproduce the error. This code split a simple pptx file and try to open each new presentation file. (In my exemple, the first one works but when he try to open the second one, the problem occured).
Thank you for your help.
Julien B.
Attachment:
ConsoleApp1_738fc9ab.zip