當我嘗試初始化對象爲:初始化OutlookEmail對象給出了從HRESULT異常:0x80029C4A(TYPE_E_CANTLOADLIBRARY)
OutlookEMail email = new OutlookEMail(MailType);
在C#
我得到異常:
Unable to cast COM object of type 'Microsoft.Office.Interop.Outlook.ApplicationClass' to interface type 'Microsoft.Office.Interop.Outlook._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00063001-0000-0000-C000-000000000046}' failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).
使用Microsoft Office(前景)2007 有人可以幫助解決這個問題嗎?我在這個確切的同樣的錯誤
看起來你錯過了一個DLL,或者它是你係統的錯誤格式。 – AlG 2012-07-13 11:24:36
which exactly dll – Edgar 2012-07-13 11:27:24
查看[ApplicationClass的文檔](http://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook.applicationclass.aspx)它應該有幫助 – AlG 2012-07-13 11:34:13