Tag: redistributable

如何使用可再发行的PIA 2010在没有安装MS Office客户端的计算机上创buildexcel应用程序

从过去几天来,我一直在努力实现可重新分配的PIA 2010.实际上,我在本地创build了一个使用2007 PIA的Excel应用程序(我的机器上也安装了MS Office)。 这个应用程序工作正常,现在我已经安装了2010年PIA和注册它的Microsoft.Office.Interop.Excel dll然后我已经删除,然后添加这个新的DLL在我以前创build的Excel应用程序,但现在应用程序崩溃创buildExcel对象。 即 var app = new Application(); 并在浏览器上显示下面的错误。 Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Office.Interop.Excel.Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{000208D5-0000-0000-C000-000000000046}' failed due to the following error: Library not registered. (Exception from HRESULT: 0x8002801D […]