Aspose.Cells Html to Excel conversion not showing images

Also one more thing do you have any timeframe where you will update the Nuget Pacakges ? so i can get the latest from Nuget rather from the dll you provided ?

@kumar.penigalapati,
We have observed the issue and logged your concerns with the ticket for further analysis. Next release via NuGet package manager is expected in a couple of days.

1 Like

The issues you have found earlier (filed as CELLSNET-47584) have been fixed in Aspose.Cells for .NET v20.10. This message was posted using Bugs notification tool by Amjad_Sahi. You may also get the version @ Nuget repos. (NuGet Gallery | Aspose.Cells 20.10.0).

1 Like

Thank you Ahsan Iqbal.

Ahsan Iqbal,
the fix kind of works when we use the dll from console app.
but when we use the same dll in asp.net web application then we are not seeing the images in exported excel file.
the code is same as the initial post which we started with.
the same code when we run it in console App we are able to see the images, but not in web application.
can you help us with this.
Thanks.

@kumar.penigalapati,
I have tested the scenario in a test ASP.NET application but could not observe any issue as the images are properly displayed in the output Excel file. Could you please share your simplified runnable solution with us for testing?

Ahsan Iqbal,
I have attached the zip file.
Thank you.
WebApplication7.zip (8.2 MB)

@kumar.penigalapati,
I have reproduced attached file using your application as it is. Image is present in the output so could you take a look and let us know your feedback. Aspose Test Images.zip (40.4 KB)

Hi Ashan Iqbal,
I am getting the excel file like the one attached.
I am using windows 10 and even in our dev and test environments its not working they are running Windows server 2012 R2.
do you see any dependency on any of these or anything else ?
Aspose Test Images.zip (7.3 KB)

Also one more thing we observed that the its taking lot of time to create a excel files.

@kumar.penigalapati,
We are analyzing this information and will share our feedback soon.

Hi Ashan Iqbal,
do you have any update on the issue ?
Thank you.

@kumar.penigalapati,
We are afraid that still no update is available in this regard. We are trying to get more information and will share immediately once ready for sharing.

@kumar.penigalapati,
Please add the following code to your web application:

ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls;
ServicePointManager.SecurityProtocol |= (SecurityProtocolType)0x300;
ServicePointManager.SecurityProtocol |= (SecurityProtocolType)0xC00;

Can you try it and let us know your feedback.

Hi Ahsan Iqbal,
No luck with this, still we are missing the images in excel.
Thank you.

@kumar.penigalapati,
We have noted your feedback and will share our comments soon.

@kumar.penigalapati,
In your web application, can you get image stream from the image https url in the html file?
Can you test it using your code and tell me the result?

Hi Ashan Iqbal,
i have tried export the html file with base64 as image source then i am able to export the files fine,
image urls are still an issue.
please see the attached file that i tired and out put excel file as well.WebApplication7.zip (8.3 MB)
Aspose Test Images2.zip (27.4 KB)

@kumar.penigalapati,
We have recorded this information into our database for further investigation. We will keep you updated here about any progress in this regard.

@kumar.penigalapati,

You can get the image stream from base64 source. But https url is not correct. So we think your web application has some security restrictions. The console program can get image stream, so the Aspose.Cells dll is working correctly. The reason may exist in your web application environment. You can test it using image with http url source. If you can get image stream, so your web application has some issues of getting https stream data.