>Hi all,
> I have a customer who can't upgrade from Word6 to a new version at this time.. In my app I have some OLE code that interfaces with word 7 and 97 for spellchecking large ammounts of text.. For some reason this doesn't seem to work with Word 6. Do any of you have any sample code, or point me in the right direction that would let VFP6 and Word6 talk via OLE? TIA
YOu are right. Word97 and later uses VBA as it's macro later, where earlier versions use WordBasic. You will have to write separate sets of code, unless you want to use all WordBasic (Word97 can be automated with WordBasic, for backward compatibility).
To instanciate a Word object that's ready to use WordBasic, use:
oWord = CREATEOBJECT("Word.Basic")
the easiest way to get the syntax to do what you want to do is to create a macro in word and then edit the macro to see what commands were used. You then have to translate the code to VFP. There is also a file called wrdbasic.hlp or something that should be on the Word CD.
Erik Moore
Clientelligence