Unable to open Spread workbook in Office 2010

Posted by: dubey_ank88 on 13 June 2018, 2:46 am EST

  • Posted 13 June 2018, 2:46 am EST

    Getting error when trying to save excel with UseOOXMLFormat flag, please see code below:


    Code : -
    string fileName = "test" + DateTime.Now.ToString("yyyyMMddhhmmss") + ".xls";

    Spread.SaveExcel(fileName, FarPoint.Excel.ExcelSaveFlags.UseOOXMLFormat);
    Spread.Dispose();
  • Marked as Answer

    Replied 13 June 2018, 8:29 pm EST

    Hello,

    I am not sure what error are you getting on saving Spread to Excel but you could be facing some error like "File is potentially dangerous to open.. etc..".

    If yes, then this is a file validation thing that Microsoft added to Office 2010 that for some reason treats the exported spreadsheet as "potentially dangerous" but doesn't give any reason why.

    If this isn't the error you are getting then please share your error and Spread ASP.Net version as well, we will look into this issue thereon.

    Thanks,
    Reeva

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels