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

Free Support Forum - aspose.com

System.NullReferenceException when having a Datatable or Dataset inside the class using C#

hello,
i have an null reference exception when having a datatable or dataset inside a class. please see the sample attached
TestAspose.zip (160.6 KB)

@miniseb31

We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-20070. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

@miniseb31

It is to inform you that the issue which you are facing is actually not a bug in Aspose.Words. So, we have closed this issue (WORDSNET- 20070).

Please note that using of objects of custom types with members of ADO.NET types as data sources was decided to be unsupported by the LINQ Reporting engine. So unfortunately, we will not be able to support this scenario. If you need to use some custom objects and ADO.NET objects to generate a single report, you have to pass them separately. Please use the ReportingEngine.BuildReport overload accepting multiple data source objects.