System.Runtime.InteropServices.COMException (0x800A03EC)

后端 未结 7 1255
梦谈多话
梦谈多话 2020-11-29 02:07

Microsoft.Office.Interop.Excel.WorkbookClass.SaveAs() method is working fine on Windows server 2003 and also on XP but not on Windows server 2008. I copied it a

7条回答
  •  余生分开走
    2020-11-29 02:29

    Try this as it worked for me...

    1. Go to "Start" -> "Run" and enter "dcomcnfg"
    2. This will bring up the component services window, expand out "Console Root" -> "Computers" -> "DCOM Config"
    3. Find "Microsoft Excel Application" in the list of components.
    4. Right click on the entry and select "Properties"
    5. Go to the "Identity" tab on the properties dialog.
    6. Select "The interactive user."

    courtesy of Last paragraph mentioned in here

提交回复
热议问题