Set custom DataSource for WorkbookDesigner

Contents
[ ]

Set custom DataSource for WorkbookDesigner

Aspose.Cells provides the option to set custom DataSource for WorkbookDesigner. The API provides an overloaded method WorkbookDesigner.SetDataSource which takes the name of the source as the first parameter and the instance of the class that implements ICellsDataTable as the second parameter. 

The following code snippet demonstrates the use of WorkbookDesigner.SetDataSource method to set the custom DataSource.

Sample Code

The implementation of CustomerDataSourceCustomer, and CustomerList classes is given below

The source and output excel files are attached for reference.

Source File

Output File