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

Last post 02-13-2012, 3:46 AM by aspose.notifier. 4 replies.
Sort Posts: Previous Next
  •  02-09-2012, 10:09 AM 360439

    rowspan and class attributes -- throws Object reference not set to an instance of an object error .NET

    Attachment: Present (inaccessible)
    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 = @"<table>
                    <thead>
                        <tr>
                            <th rowspan=""2"">Col1</th>
                            <th rowspan=""2"">Col2</th>
                            <th rowspan=""2"">Number Correct</th>
                            <th rowspan=""2"">Col3</th>
                            <th rowspan=""2"">Percentile</th>
                            <th rowspan=""2"">Col4</th>
                            <th rowspan=""2"" class="""">Col5</th>
                            <th class=""someclass"">Col6</th>
                        </tr>
                        <tr>
                            <th class=""classx"">label</th>
                        </tr>
                    </thead>
                    </table>";

    If you remove the class attribute in the above html, it works. Enclosed the full working code to duplicate the issue. Thanks.
     
  •  02-09-2012, 12:10 PM 360477 in reply to 360439

    Re: rowspan and class attributes -- throws Object reference not set to an instance of an object error

    Hi,

    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.

    Amjad Sahi
    Support Developer,
    Aspose Sialkot Team
    Contact Us
     
  •  02-10-2012, 8:47 AM 360739 in reply to 360477

    Re: rowspan and class attributes -- throws Object reference not set to an instance of an object error

    Sounds like this one fixed as well (I can't duplicate this anymore)...any thoughts? Thx.
     
  •  02-10-2012, 9:45 AM 360769 in reply to 360739

    Re: rowspan and class attributes -- throws Object reference not set to an instance of an object error

    Hi,

    Thanks for feedback and testing this issue.

    We will add your feedback and close this thread.

    Many Thanks and Kind Regards,

    Shakeel Faiz
    Support Developer
    Aspose Sialkot Team
    Contact Us
    Aspose - The .NET and Java Component Publisher

    Keep in touch! We're on Twitter and Facebook
     
  •  02-13-2012, 3:46 AM 361007 in reply to 360439

    Re: rowspan and class attributes -- throws Object reference not set to an instance of an object error

    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.
     
View as RSS news feed in XML