Windows 7 .net Excel .SaveAs() Error Exception from HRESULT: 0x800A03EC

后端 未结 6 744
情书的邮戳
情书的邮戳 2020-11-30 04:21

Background:
I toasted my old hard drive at work and am getting a new one. With that I\'ll have to rebuild my machine. My manager has Windows 7 installed on him loaner la

6条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-30 04:52

    Make sure you're running the program (and EXCEL.EXE) as administrator, and the directory you're saving to doesn't have "read-only" attribute on.

    Also, try passing the full file path instead of just the file name.

    You could also try passing System.Reflection.Missing.Value instead of omitting the optional parameters.

    Can't think of anything else right now. Hope this helps.

    ShdNx

提交回复
热议问题