Unspecified error (Exception from HRESULT: 0x80004

2019-07-27 21:19发布

i am working with Microsoft.Office.Interop.Excel, to copy excel chart into power point using Asp.net. It works fine in visual stdio IDE but as i I deploy it on server. it gives an error , Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))

this erorr generted by code when it copies the charobject ,Only data copies perfectly fine.

problem is with chartobject.copy() function. I googled alot but it gives nothing please help me.

Moazzam

1条回答
乱世女痞
2楼-- · 2019-07-27 22:12

Office interop is NOT supported by MS in server-side scenarios (like ASP.NET or Windows Service) - see http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757#kb2

For server-side handling of Excel files you will need to use some 3rd-party library - there are several free and commercial libraries available:

查看更多
登录 后发表回答