I'm trying to create a basic chart in a PowerPoint slide in .Net Core and failing. I've modified the web sample and created a simple console app to test this out but get the following exception when trying to save the file.
{System.NullReferenceException: Object reference not set to an instance of an object.
at Syncfusion.Presentation.FileDataHolder.Close()
at Syncfusion.Presentation.Presentation.ClearAll()
at Syncfusion.Presentation.Presentation.Close()
at SyncTest.Program.CreatePPT(String filename) in C:\Dev\PresentationTest\SyncTest\Program.cs:line 34
at SyncTest.Program.Main(String[] args) in C:\Dev\PresentationTest\SyncTest\Program.cs:line 16}
If I ignore the error and continue I get an error from PowerPoint when trying to open the file. The file is invalid and needs to be Repaired.
Is there a simple example of creating a chart slide in .net core?
Attachment:
SyncTest_e4ba899b.zip