Handling all Office version...

sethindeed
10-09-2001, 08:54 AM
Here comes an old issue ( I guess ) for all the programmers calling at a moment or another Office Tools. Due to the fact that my software is wide distributed, I have to deal with different Office installations. I know that I can only refer to one version of Office ( i.e. Office 2000 ), but some of the users have Office 97 installed on their machines. Particularly for my automatic Email function, I would like to know if there is a way to handle both OutLook 97 and Outlook 2000 in the same program. We have a Setup guy here at my job ( using InstallShield ) that may check in the registry ( but where ) to know which version is currently installed and then, I can give him the right dll's to install ( but which one ). Is that the way to do it or is there a more dynamic way to do so...?
Thanx :)

KesleyK
10-09-2001, 09:45 AM
I think the issues you need to be concerned with are more on the way you deal with the dll files rather then the libraries themselves. Install the latest versions and they *should* be backward compatible.

Here's how you can retrieve the version number:

Set outlk = CreateObject("Outlook.Application")
myVersion = outlk.Version

9.0 is 2k...

__________
HOOOaaaaa! Semper Fi!

sethindeed
10-09-2001, 11:47 AM
M...kay...and once I know the version, what can I do ?

Thinker
10-09-2001, 11:52 AM
I don't know if this will work for you, but if you only use objects, methods
and properties available in the office 8 libraries, you should be able to
install on either machine without problems. All of the version 8 interfaces
are supported in the version 9 libraries.

I think therefore I am... sometimes right. images/icons/wink.gif

sethindeed
10-09-2001, 12:30 PM
In VB6, I don't have access to Object 8.0 library. I can only refer to Object 9.0 :(

Thinker
10-09-2001, 12:43 PM
Yes, that is because you have Office 2000 installed on your machine.
The only problem this will cause is you can't tell if an object, method, or
property is supported in Office 97. I have done projects on my NT server
with Office 2000 and a reference to version 9, then moved the project to
my 98 pc with Office 97 installed and it runs fine.

I think therefore I am... sometimes right. images/icons/wink.gif

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum