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

Free Support Forum - aspose.com

Rowspan and class attributes -- throws Object reference not set to an instance of an object error

Hi – I am trying to convert Html to XLS. The Html I try to convert is having rowspan and colspan, Aspose works beautifully (good job on that one!). But now I found an issue that if both rowspan and class attributes sets, Cells library throws above mentioned exception.

Here is the html code:
string html = @"
<th rowspan="“2"”>Col1
<th rowspan="“2"”>Col2
<th rowspan="“2"”>Number Correct
<th rowspan="“2"”>Col3
<th rowspan="“2"”>Percentile
<th rowspan="“2"”>Col4
<th rowspan="“2"” class="""">Col5
<th class="“someclass”">Col6
<th class="“classx”">label

If you remove the class attribute in the above html, it works. Enclosed the full working code to duplicate the issue. Thanks.


Thanks for the sample code,

I can notice the issue as you have mentioned by using your sample code. I have logged a ticket with an id: CELLSNET-40361. We will look into it soon.

Thank you.

Sounds like this one fixed as well (I can’t duplicate this anymore)…any thoughts? Thx.


Thanks for feedback and testing this issue.

We will add your feedback and close this thread.

The issues you have found earlier (filed as CELLSNET-40361) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.