使用C#或Vb.net关闭工作簿然后错误调用的对象已与其客户端断开连接。 (来自HRESULT的异常:0x80010108(RPC_E_DISCONNECTED)) [英] Workbook Close using C# Or Vb.net Then Error The object invoked has disconnected from its clients. (Exception from HRESULT: 0x80010108 (RPC_E_DISCONNECTED))
本文介绍了使用C#或Vb.net关闭工作簿然后错误调用的对象已与其客户端断开连接。 (来自HRESULT的异常:0x80010108(RPC_E_DISCONNECTED))的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用C#代码读取Excel然后关闭工作簿然后错误
using C# Code read Excel and Then close work book Then Error
The object invoked has disconnected from its clients.
(Exception from HRESULT: 0x80010108 (RPC_E_DISCONNECTED))
推荐答案
怎么样 http://stackoverflow.com/questions/2421188/comexception-0x80010108-rpc-e-disconnected-when- closing-excel-workbook [ ^ ]?
这是关于使用处理Excel文档Microsoft.Office.Interop.Excel
。
试着看看这里: http:// excelconverter .codeplex.com / documentation [ ^ ]
这是Excel文档转换的一个小程序s。
在程序的主类中(简单的Microsoft Excel文档转换器) -ExcelDocConverter
,有两个重要的方法
This is about handling Excel Documents withMicrosoft.Office.Interop.Excel
.
try to have a look at here: http://excelconverter.codeplex.com/documentation[^]
It is a small program of Conversion of Excel Documents.
Inside the main class of the program (Simple Microsoft Excel Documents Converter) -ExcelDocConverter
, there are 2 important methods
ReleaseExcelResources();
KillExcelProcessThatUsedByThisInstance();
用于处理和释放Excel.EXE的两个资源以及从内存中打开的Excel文档。
你可能想看看。
which used to handle and release the both resources of Excel.EXE and the opened Excel document from the memory.
You may want to have a look.
这篇关于使用C#或Vb.net关闭工作簿然后错误调用的对象已与其客户端断开连接。 (来自HRESULT的异常:0x80010108(RPC_E_DISCONNECTED))的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文