Free Support Forum - aspose.com

I have a dataset-include five datatables-how give me a sereval worksheets xls from the dataset?

i have a dataset,include five datatables,how give me a sereval worksheets xls from the dataset?

Excel excel = new Excel();
for(int i = 0; i < 5; i ++)
{
excel.Worksheets.Add();
excel.Worksheets[ i ].Cells.ImportDataTable(dataset[ i ], false, 0, 0);
}