Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Wed Mar 22, 2023 8:07 am

Hi,

I am getting this ObjectDisposedException error when creating a presentation.

Code: Select all
var presentation = new Spire.Presentation.Presentation();  // occurred

var presentation = new Spire.Presentation.Presentation(path, FileFormat.Pptx2013);  // occurred

using (var presentation = new Spire.Presentation.Presentation())  // occurred
{
}



Why is the error occurring?
(Thrown on FirstChanceException)


Environment
- Windows 11
- WPF(.NET 6.0)
- Spire.Office 8.1.1

KyungHyunRoh
 
Posts: 8
Joined: Tue Jun 28, 2022 6:02 am

Thu Mar 23, 2023 6:08 am

Hi,

Thanks for your inquiry.
I did an initial test with your version and the latest Spire. Office, but I did not reproduce your issue, there is no error occurred. To help us do an accurate investigation, could you please provide us with the following messages? You can send them to us via email (support@e-iceblue.com) or attach them there. Thanks for your corporation.
1) your region setting (E.g., China, Chinese).
2) your test project.

Sincerely,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Return to Spire.Presentation