Posted 27 May 2018, 11:52 pm EST - Updated 30 September 2022, 5:01 am EST
Hi
We are saving file by using below code,
if (Path.GetExtension(fileName) == “.xlsm”)
{
SaveExcel(fileName, FarPoint.Excel.ExcelSaveFlags.DocumentCaching | FarPoint.Excel.ExcelSaveFlags.UseOOXMLFormat);
}
else
{
SaveExcel(fileName, FarPoint.Excel.ExcelSaveFlags.UseOOXMLFormat);
}
With this code, “.xlsx” files we did not find any issues, but for “.xlsm” we are having problem like if we try to open saved file it is throwing below message. Could you please tell me how can i fix this issue.
Thanks
Siva