Automating the correct version?

E

elziko

When I build an automation application in VB6 the executable is built
against the current version of Office installed on the development machine.
Using the executable on a machine with a different office version causes
errors.

Is there any way of interrogating an executable to find what version of
office it was built for? In a similar way you could see an executable's COM
dependencies?
 
J

Jonathan West

elziko said:
When I build an automation application in VB6 the executable is built
against the current version of Office installed on the development machine.
Using the executable on a machine with a different office version causes
errors.

Is there any way of interrogating an executable to find what version of
office it was built for? In a similar way you could see an executable's COM
dependencies?


For Word, take a look at the following article. The same principle can be
applied to the other Office apps.

Determine If Word is Installed
http://www.fawcette.com/vsm/2002_06/magazine/columns/qa/default_pf.aspx
 
E

elziko

Thans for your reply but perhaps I didn't word my question very well.

I'm looking for a method that given an executable I can find out what
version of office that executable was built for?
 
J

Jonathan West

elziko said:
Thans for your reply but perhaps I didn't word my question very well.

I'm looking for a method that given an executable I can find out what
version of office that executable was built for?

Well, you could look up the COM dependencies and see which version of the
office apps are listed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top