Dear e-iceblue Support Team,
I hope this email finds you well. I am writing to seek assistance with a problem I encountered while working with the Spire.Presentation library.
Issue Description: When attempting to initialize and load a PowerPoint file from a specified path, I encountered an error. The presentation fails to load because it does not contain any slides.
Code Snippet:
varpptFolderPath = (AppDomain.CurrentDomain.BaseDirectory + "DefaultPPTTemplate.pptx");
Spire.Presentation.Presentation pptxDoc = new();
pptxDoc.LoadFromFile(pptFolderPath);
Exception Details:
System.IO.IOException: 'The parameter is incorrect. : 'C:\Users\santhosh.sivala\Downloads\Shapes\UT_Q2_Alignment_Error\EmptyPowerPoint Presentation.pptx''
Request for Assistance: Could you please guide me on how to handle this situation? Is there a way to detect if a PowerPoint file is empty (i.e., contains no slides) before attempting to load it?
Thank you for your prompt attention to this matter. I appreciate any insights or solutions you can provide.