Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word 2007 breaks automation code
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01329195
Message ID:
01329333
Views:
15
>I'm moving apps to a new development machine that is running Office 2007 and have encountered problems with some Word automation code. I know there are differences with the new version of Word but where these are documented? Among the problems I've noticed thus far are that all references to
>
>oWord.options.printbackground
>
>generate an error. Also, when an existing document is copied and pasted into a new blank document based upon the same template, the margins are lost. Somehow, I have a feeling that these problems are just the beginning. The client runs a mixture of Word 2000 and Word 2003 so changes just to mollify Word 2007 in my development envrionment are inappropriate. Can Word 2000 and Word 2007 coexist? If so, what's the best way to make sure the older version of Word is used by the automation routines?

Just use the version hen you create Word object:
oWord = CREATEOBJECT([Word.Application.9])
I am not sure if the Word2000 version was 9 or 8, but you could check it.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform