Hello and thanks for reading my question.
We have a mixture of Office 2000, Office XP and Office 2003 clients.
I just created an application that uses early-binding to send out e-mails via MS Outlook.
The entire application fails when it is run on a machine that has a different version of MS Office, since the folder structure is different and the olb file names are different(c:\program files\microsoft office\office\msoutl9.olb vs. c:\program files\microsoft office\office11\msoutl.olb, etc.). This causes a Reference in the VB Design Environment (Tools > References) to be invalid and preceded by "MISSING:".
On the client machine where the app fails, I deselect the Reference to "Microsoft Outlook 9.0 object library... " and the app works (even though the MS Outlook Reference was the reference with the lowest priority).
So in the source code, I changed everything related to Outlook to late binding and it works fine on all machines now.
Is there a better way to deal with this issue? I know that late binding is slower, so I'd like to use the early binding if possible.
Thank you for your help.
-Mike Kemp
We have a mixture of Office 2000, Office XP and Office 2003 clients.
I just created an application that uses early-binding to send out e-mails via MS Outlook.
The entire application fails when it is run on a machine that has a different version of MS Office, since the folder structure is different and the olb file names are different(c:\program files\microsoft office\office\msoutl9.olb vs. c:\program files\microsoft office\office11\msoutl.olb, etc.). This causes a Reference in the VB Design Environment (Tools > References) to be invalid and preceded by "MISSING:".
On the client machine where the app fails, I deselect the Reference to "Microsoft Outlook 9.0 object library... " and the app works (even though the MS Outlook Reference was the reference with the lowest priority).
So in the source code, I changed everything related to Outlook to late binding and it works fine on all machines now.
Is there a better way to deal with this issue? I know that late binding is slower, so I'd like to use the early binding if possible.
Thank you for your help.
-Mike Kemp