我們有一個用VB.NET(CLR 2.0)編寫的WinForms應用程序,它可以處理很多Outlook相關的東西。我們所做的一件事是以編程方式打開一個新的Outlook 2003'撰寫新電子郵件'表單,並預先填入'to'地址。現在.NET/COM Interop問題 - 打開Outlook 2003發送郵件對話框
Me.WordApp = New Word.Application
Dim template As Object = System.Reflection.Missing.Value
Dim newTemplate As Object = System.Reflection.Missing.Value
Dim documentType As Object = Word.WdNewDocumentType.wdNewEmailMessage
Dim visible As Object = False
Me.WordDoc = Me.WordApp.Documents.Add(template, newTemplate, documentType, visible)
'then some other stuff
,這個完美的作品幾乎無處不在,我們部署應用程序 - 用戶在郵件的標題和正文,點擊發送罷了,我們可以趕上發送事件和做其他的好東西。
只有幾個安裝位置會中斷,而我們無法達到底部。
請問以下給出的是哪裏的問題可能是任何跡象顯示:
Could not load file or assembly 'office, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The located assembly's
manifest definition does not match the assembly reference. (Exception from HRESULT:
0x80131040)
據我們所知,這些都只是Office 2003和安裝,與Outlook和Word,就像在情況下,它工作正常。
我會非常感謝任何想法 - 無論是如何解決這個問題,還是更好的實現相同目標的方法。
不客氣Chris!老實說,我對開發Office加載項的總體經驗感到失望。通過Visual Studio嚮導看起來很簡單,但部署很痛苦。 – 2009-02-11 14:53:45