We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

PdfLigthTable, ColumnName raises exception

Hi,

I have some trouble with your PdfLightTable, I'm trying to add the table header, but I have got a NullReferenceException from the Draw() method of the table.
If I do not set the names of the columns, no exception is raised.

Code and log attached, or you can found it here: http://pastie.org/840702

I am using your Syncfusion Essential Studio 7.4.0.20, C# 2.0.

Am I doing something wrong?
Thanks.




table_header_error_4dec85a5.zip

3 Replies

PJ Pravin Joshua D Syncfusion Team March 3, 2010 05:02 AM UTC

Hi Sebastien,

Thank you for using Essential PDF.

We are able to see the issue while passing string array as source for the PDFLightTable. This issue is not reproduced while passing the data source as DataTable. Could please try it as a workaround. We have also modified your sample.

Sample:

http://files.syncfusion.com/samples/PDF.Windows/LightTableDemo.zip

Please try this and let us know if you have any questions.

Regards,
Pravin Joshua D


AD Administrator Syncfusion Team March 9, 2010 04:16 PM UTC

Hi,

Works as expected with DataTable.
Thanks.


PJ Pravin Joshua D Syncfusion Team March 11, 2010 05:50 AM UTC

Hi Sebastien,

We are glad to hear that the issue has been resolved. Please let us know if you have any other questions.

Regards,
Pravin Joshua D

Loader.
Live Chat Icon For mobile
Up arrow icon