Free Support Forum - aspose.com

Aspose.Cells Html to Excel conversion not showing images

Ahsan Iqbal,
I have attached the sample code.
Thanks.
Page_out.zip (8.3 MB)

@kumar.penigalapati,
Thank you for the sample project. We have observed the issue while using it with the latest hot fix.

@kumar.penigalapati,
We have created a new ticket “CELLSNET-47729” for images over lapping the text during html to excel conversion. Once we will have some news for you, we will update you in this topic.

Thanks Ahsan Iqbal.

@kumar.penigalapati,
You are welcome.

Hi Ahsan Iqbal
There is one more issue we are facing trying to convert html tp excel.
please see the attached html file and same source code which we used to export like other files attached in previous examples.

HtmlPage5.zip (8.1 KB)

Error
Object reference not set to an instance of an object.
Stack Trace
at .(Int32 )
at .(Cell )
at .(Cell )
at .(Cell )
at . ()
at . ()
at .(String , ArrayList )
at .()
at .()
at .(Stream )
at .(String , Stream , LoadOptions )
at Aspose.Cells.Workbook.(String , LoadOptions )
at Aspose.Cells.Workbook…ctor(String file, LoadOptions loadOptions)
at WebApplication7.Controllers.HomeController.Index() in C:\Users\akpenig\source\repos\WebApplication7\Controllers\HomeController.cs:line 25

@kumar.penigalapati,
We will test this scenario and will log a ticket after reproducing the issue here.

@kumar.penigalapati,
I have tested the scenario using the latest version 20.11 from NuGet package manager but could not observe any issue with the sample file “HtmlPage5.html” shared above. You may please try the scenario by updating the references from NuGet package manager and share the feedback.
Aspose Test Images2.xlsx.zip (12.7 KB)

@kumar.penigalapati,

This is to inform you that we have fixed your issue “CELLSNET-47729” now. We will soon provide you the fixed version after performing QA and incorporating other enhancements and fixes.

Hi Ahsan Iqbal,
can you please see the attached example and try out.
we are getting an error with V20.11 as well with our example.
Thanks.WebApplication7.zip (8.3 MB)

@kumar.penigalapati,
We have observed the issue using the sample project and logged it with the ticket. We will write back here once any update is ready for sharing.

Thanks Ahsan Iqbal
and one more thing i observed is that in the html there is an img tag with our the src attribute.
I am guessing that could be reason for the failure.
Thanks.

@kumar.penigalapati,
Thank you for providing more information. We will analyze it and provide our feedback accordingly.

@kumar.penigalapati,

For managing issues accurately, we have created a new ticket “CELLSNET-47745” to trace exception when importing sample files. We will look into it soon.

@kumar.penigalapati,

Please try our latest version/fix: Aspose.Cells for .NET v20.11.6 (attached)
Aspose.Cells20.11.6 For .Net2_AuthenticodeSigned.Zip (5.4 MB)
Aspose.Cells20.11.6 For .Net4.0.Zip (5.4 MB)

Your issues (logged earlier as “CELLSNET-47729” and “CELLSNET-47745”) are fixed in it.

Let us know your feedback.

Thanks Amjad Sahi,
we will test the fix and will let you know.

@kumar.penigalapati,

Sure, please take your time to evaluate the new fix. Hopefully the mentioned issues will be fixed in it.