>Does anyone have information on how to automate Word 95 or 97 through VFP? I know I can use CREATEOBJECT("Word.Document") or "Word.Application", but that's about it. The documentation seems to be poor, unless I'm looking in the wrong place. I would be grateful to anyone who could point me in the right direction
Gino, there are three examples in KB\FAQ\Win32API section (one was added later), "Interacting Word using word basic". Those examples all refer to word 95 and word.basic (I didn't have W97 by date posted). In word 97 some commands changed behaviour, but except "editgoto(Bookmark)" all commands in the example work with w97 too. "editgoto(Bookmark)" fail but "editbookmark(Bookmark,,,,1)" as stated in example. You can still use word.basic in w97 :
oW97 = createobject("word.basic")
oW97App = createobject("word.application")
with oW97App.wordbasic
Another tip (undocumented in KB) to get complex word commands in correct syntax : Run word and record macro, then edit macro to see VFP calling syntax.
Cetin