We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Image tag gets duplicated in converted HTML


We are using licenced version of aspose Air, I am trying to convert .xls file to HTML file. File got converterted properly, but the image embedded in .xls document get duplicated and two images are getting added in HTML genrated.However .xls file has only one image. We are using Aspose cells version .

Following code I am using,

Workbook workbook = new Workbook(inputBlobStream);

Workbook destWorkbook = new Workbook();<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Worksheet destSheet =

int totalRowCount = 0;<o:p></o:p>

for (int i = 0; i <
workbook.Worksheets.Count; i++)


sourceSheet = workbook.Worksheets[i];<o:p></o:p>

Aspose.Cells.Range sourceRange =

Aspose.Cells.Range destRange =
destSheet.Cells.CreateRange(sourceRange.FirstRow + <o:p></o:p>

sourceRange.FirstColumn, sourceRange.RowCount, <o:p></o:p>



= sourceRange.RowCount + totalRowCount;<o:p></o:p>




Attached is the file I am triying to convert using aspose. Please let me know if I missed anything.

Thank you !


Hi Abhijeet,

Thanks for your inquiry. As your query is related to Aspose.Cells, I will move your request in Aspose.Cells forum. My colleagues from Aspose.Cells component team will answer you shortly.

Best regards,


Please download and try this fix: Aspose.Cells for .NET v7.3.4.2 and let us know your feedback.
I have tested with it and there looks to me no issue. there is no duplicate image in it.

As you have added a line i.e. to your code:
so your contents or image will be deteriorated, If you need to have same look and feel as per Excel template file (viewing in MS Excel), you may skip this line.

If you still have any issue, let us know with some screen shots and provide more details about the issue, we will check it soon.

Thank you.

Thank you for providing guidlines, I verified issue with vesion Aspose cell, Yet it is reproducible with this version also.

Here the crux is when we look converted document as HTML we can see only one image attached in Preview mode. But as we open the document in Editor, two image tags are added for the same image. Attached are the screen prints details as per request.

Please verify it and let me know if it is recreated the same way.

Thank you !



Thanks for providing further details.

I found the reason why there are two tags rendered for the output HTML file. Actually there are two pictures (duplicate - both are placed one above other) and not one in the source file, see the screen shot here. So, it is not an issue with our product.

Thank you.