>>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 :
>nlLocaleId=sys(3004)
>=sys(3006,1033)
>oWordDocument=createobject("word.basic")
>with oWordDocument
> wrdVersion = .appinfo(2)
> .fileexit(2)
>endwith
>wait clear
>? wrdVersion
>=sys(3006,val(nlLocaleId))
Cetin
Hi Cetin.
This works fine with MSWord 8 but not with MSWord 6.
I got an OLE error saying unknown name. I does not
recognise the func .appinfo(2) cause in MSWord 6 it's called
.appinfo$(2) and thats a major problem. Tried to use this but
all I get is: No parameters found. And this is cause VFP
thinks is should look for ".appinfo" in var (2) (the $ compare func).
So now I stuck.
Do you have any suggestions that might help me get around this problem?
/Magnus
Magnus NordinVFP MCP
"We have tested the GUI on 5-year olds. Why? Beacuse they aren't braindead!"
Michael Spindler, Apple