Xlsm to Data table conversion

Can any one help me in conversion from xlsm to data table or xls

Hi,

Thanks for your posting and using Aspose.Cells.

Yes, it is possible to convert your xlsm file into xls format. Please see the code below.

To export data from your excel file like xls, xlsx, xlsm, xlsb etc into your data table, please see the following documentation article.

( Export Data from Worksheet in .NET|Documentation )

C#
//This is the path of your xlsm file
string filePath = @“D:\Downloads\source.xlsm”;

//Load your xlsm file inside the workbook object
Workbook workbook = new Workbook(filePath);

//Save your workbook in xls format
workbook.Save(“output.xls”, SaveFormat.Excel97To2003);