05-14-2012, 05:01 PM
Code:
DataTable.Export("file path")
DataTable.ExportSheet("filepath","DTsheet")
DTsheet:index or name of the sheet which u want to export
to excel file.
Ex:
Code:
Datatable.Exportsheet("c:\name.xls","name")
Datatable.exportsheet("c:\name.xls",1)