Error occurs when converting table to PNG


#1

Hello,

I am using Aspose.Cells v18.5 to generate PNG of table- “table1” in the attached excel file. Following exception occurs while generating the PNG:

com.aspose.cells.CellsException: Can’t add attribute to 0-length text
at com.aspose.cells.zcap.a(Unknown Source)
at com.aspose.cells.zcap.a(Unknown Source)
at com.aspose.cells.zcap.a(Unknown Source)
at com.aspose.cells.SheetRender.toImage(Unknown Source)

This issue seems to be a break in functionality. It used to work fine till some previous version of aspose.cells.

PFA below the source excel and sample code to generate the PNG:
attachments.zip (10.3 KB)

Can you please analyse this issue.

Thanks,
Neha


#2

@Neha_Gautam,

Thanks for the template file and sample code.

After an initial test, I am able to observe the issue as you mentioned by using your sample code with your template file. I found an exception “com.aspose.cells.CellsException: Can’t add attribute to 0-length text” when rendering worksheet to PNG file format.

I have logged a ticket with an id “CELLSJAVA-42678” for your issue. We will look into it soon.

Once we have an update on it, we will let you know.