Version between 9.0 and 11.0?

L

Laurel

Word added parameters to a function in Office 2003, Word 11.0, compared to
Word 9.0 in Office 2002. I don't have access to Word 10.0 to see if it does
or does not have those extra parameters. How can I find out? The function
in question is MailMerge.OpenDataSource, and the two new parameters are at
the end, and are called OpenExclusive and SubType.

I need to do a test on the version in my PowerBuilder code that calls
MailMerge via OLE. I need to know whether to test for >= 10.0 or >= 11.0.

TIA
LAS
 
C

Cindy M -WordMVP-

Hi Laurel,
Word added parameters to a function in Office 2003, Word 11.0, compared to
Word 9.0 in Office 2002. I don't have access to Word 10.0 to see if it does
or does not have those extra parameters. How can I find out? The function
in question is MailMerge.OpenDataSource, and the two new parameters are at
the end, and are called OpenExclusive and SubType.

I need to do a test on the version in my PowerBuilder code that calls
MailMerge via OLE. I need to know whether to test for >= 10.0 or >= 11.0.
Word 2002 certainly has SubType. I believe it also has OpenExclusive, but I
can't swear to it as I don't have a Word 2002 machine available at the moment.
But when I look in the VBA Object Browser in Word 2003, I see the two arguments
in the order you give, first OpenExclusive, then SubType. Since I've never
known MS to add a parameter in the middle of the list, and I'm also pretty sure
no major changes were made to MailMerge in Word 2003, I think you can be pretty
sure both are also in the 10.0 object library.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 
P

Peter Jamieson

I don't have a Word 2002 machine available at the moment.

I had this problem too. But now back in business -

The parameter is there in Word 2002, in the sequence given (i.e. before
Subtype) . I tend to forget about it, primarily because Word never seems to
records a value for it when it records OpenDataSource calls.

Also worth noting:

Word 2003 = 11.0
Word 2002 = 10.0
Word 2000 = 9.0

Both the Word 2002 and 2003 Object Models have a hidden method
OpenDataSource2000 that does not have the extra 2 parameters. Whether it
does the same thing as OpenDataSource in Word 2000 is a question I'm not
inclined to try and answer :)

Peter Jamieson
 

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