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

Free Support Forum - aspose.com

Using Generic List as Nested Object of primitive data type

Hi Aspose Team,

I’m using Aspose.cells dll in .Net and version is 17.12.5.0.

For Example, I have a class Employee and few properties, one of the property in Employee class is public List [int] EmployeeId { get; set; }. Now how do i export this using smart markers.

I have used &=Datasourcename.EmployeeId and getting printed as System.Collections.Generic.List`1[System.Int64]

Could please help me on this?

Thanks,
Dnyaneshwar

@dnyaneshwar008,

Thanks for your query.

Please see the following two sub-topics with examples on how to use Nested Objects and Generic Lists in Smart Markers for your reference. Please refer to the examples and write/update your code accordingly:
https://docs.aspose.com/display/cellsnet/Using+Smart+Markers#UsingSmartMarkers-UsingNestedObjects
https://docs.aspose.com/display/cellsnet/Using+Smart+Markers#UsingSmartMarkers-UsingGenericListasNestedObject

Hope, this helps a bit.

Thanks Amjad_Sahi… :slight_smile: