Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running Word 6, 7, or 8???
Message
From
11/01/1999 03:03:24
 
 
To
08/01/1999 11:30:59
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00173965
Message ID:
00174571
Views:
40
>>Hello.
>>
>>I'm using MSWord to create some reports. And I'm having
>>a bit of problem with MSWord basic vs MSWord VBA.
>>I need to know what version of MSWord is installed on
>>every machine my app runs on.
>>It must run with MSWord 6, 7 and 8.
>>Everything is working except the version check.
>>There is a func called word.application.version but it only
>>works with MSWord 8. I have tried word.basic.version but there is
>>no func called that in basic.
>>
>>So what I need is a func that will determine if it's MSWord 6, 7 or 8,
>>or both.
>>
>>/Magnus
>Magnus,
>Many word.basic commands work in version 6-8 so you can utilize it :
*** set the LOCALEID to English
>nlLocaleId=sys(3004)		&& Save local id
>=sys(3006,1033)			&& We will be sending instructions in English
>oWordDocument=createobject("word.basic") && Create word object with w.basic
>with oWordDocument
>	wrdVersion = .appinfo(2) && Get version
>	.fileexit(2) && Exit word
>endwith
>wait clear
>? wrdVersion
>=sys(3006,val(nlLocaleId))
Cetin

Hi Cetin.

Thank you for your reply, it works perfect.

/Magnus
Magnus Nordin
VFP MCP

"We have tested the GUI on 5-year olds. Why? Beacuse they aren't braindead!"
Michael Spindler, Apple

Previous
Reply
Map
View

Click here to load this message in the networking platform