Microsoft Office Excel cannot access the file 'c:\inetpub\wwwroot\Timesheet\App_Data\Template.xlsx'

前端 未结 7 1611
死守一世寂寞
死守一世寂寞 2020-11-27 12:35

I have my code as follows :-

Microsoft.Office.Interop.Excel.Application oXL = null;
Microsoft.Office.Interop.Excel.Sheets sheets;
Application excel = new Mic         


        
7条回答
  •  盖世英雄少女心
    2020-11-27 13:28

    This works

    excel.exe /safe

    This does not and gives the same error as the regular excel startup

    excel.exe /automation

    This also occurs for all MS Office 2007 apps for ANY network file. Local file access is fine.

提交回复
热议问题