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 Sep 09, 2020 5:58 pm

Receiving the error "Object reference not set to an instance of an object" on converting a .ppt file into HTML.
Seems to be file specific, but nothing seems to be different about the files throwing the error.

The code used is :
Code: Select all
using (Presentation ppt = new Presentation())
{
    ppt.LoadFromFile(absolute-file-path);
    ppt.SaveToFile(absolute-destination-path + ".html", Spire.Presentation.FileFormat.Html);
}

delwyn.pinto
 
Posts: 5
Joined: Wed Sep 09, 2020 1:19 pm

Thu Sep 10, 2020 5:39 am

Hello,

Thanks for your post.
To help us investigate your issue more accurately, please provide your .ppt file that could reproduce your issue. You could upload it here or send it to us (support@e-iceblue.com) via email. Thanks in advance.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Thu Oct 22, 2020 2:46 am

We have just upgraded from 7.0 to 7.06 and are having the same problem. We havent changed the format of our uploads. I thought it might be a display page error so I deleted the displaypage column in the upload but it did not help. I searched the forum posts to no avail.

Importing 48 Products

Object reference not set to an instance of an object.
Import unsuccessful for Product
ProductId = 0
Name = Lladro My Guardian Angel Pink
Error message: Object reference not set to an instance of an object.

at CommerceBuilder.Products.Product.set_CustomUrlString value
at CommerceBuilder.DataClient.Api.ObjectHandlers.ImportHandler.aoObject& A_0, Object A_1
at CommerceBuilder.DataClient.Api.ObjectHandlers.ImportHandler.aArray A_0, Type A_1, String A_2, String A_3, String A_4, Object A_5, w A_6, f A_7, c A_8, e A_9, String A_10

Base Exception: Object reference not set to an instance of an object.
at CommerceBuilder.Products.Product.set_CustomUrlString value
at CommerceBuilder.DataClient.Api.ObjectHandlers.ImportHandler.aoObject& A_0, Object A_1
at CommerceBuilder.DataClient.Api.ObjectHandlers.ImportHandler.aArray A_0, Type A_1, String A_2, String A_3, String A_4, Object A_5, w A_6, f A_7, c A_8, e A_9, String A_10

Object reference not set to an instance of an object.
Import unsuccessful for Product
ProductId = 0
Name = Lladro Guardian Lioness Blue
Error message: Object reference not set to an instance of an object.

at CommerceBuilder.Products.Product.set_CustomUrlString value
at CommerceBuilder.DataClient.Api.ObjectHandlers.ImportHandler.aoObject& A_0, Object A_1
at CommerceBuilder.DataClient.Api.ObjectHandlers.ImportHandler.aArray A_0, Type A_1, String A_2, String A_3, String A_4, Object A_5, w A_6, f A_7, c A_8, e A_9, String A_10

Base Exception: Object reference not set to an instance of an object.
at CommerceBuilder.Products.Product.set_CustomUrlString value
at CommerceBuilder.DataClient.Api.ObjectHandlers.ImportHandler.aoObject& A_0, Object A_1
at CommerceBuilder.DataClient.Api.ObjectHandlers.ImportHandler.aArray A_0, Type A_1, String A_2, String A_3, String A_4, Object A_5, w A_6, f A_7, c A_8, e A_9, String A_10
User avatar

JasonBed
 
Posts: 1
Joined: Tue Oct 20, 2020 4:47 pm
Location: Belarus

Thu Oct 22, 2020 8:17 am

Hello JasonBed,

Thanks for your inquiry.
Now the latest version of our Spire.Presentation is Spire.Presentation Pack Hotfix Version:5.9.5. Did you encounter the same issue when using our Spire.Presentaion?
To help us reproduce your issue and solve it, please provide your test code and your input file. Thanks in advance.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Return to Spire.Presentation