>> I do talking to Word through word.basic but haven't tried with Word97 yet. Since you have a wordbasic program why not use it through VFP ? Up till now problem with wordbasic I faced was not knowing the parameter positions (in VFP we need positional arguments for wordbasic calls). Now I got position.hlp including the necessary data. Another approach is to save the wordbasic as a macro in word and call it during fileopen.
>
>1. Simple sample:
> let i have wordbasic programm:
> Sub TypeText(a$)
> Insert a$
> End Sub
> Who i can run it from VFP?
>2.Who it is position.hlp? Send me please archive!
>
>P.S. Thank for a praise my English.
>P.P.S. Your help on COLLATE me has very helped.
Sorry being late, I had a class.
In VFP you would write like this (this is from VFP automation samples - check it in solution.app) :
oWordRef.Insert(aString) && a$ notation is for basic
* oWordRef is a reference to word object, you can get it through addobject, createobject, getobject etc.
* And do something extra with word.basic
oWordRef.editselectall
oWordRef.Font("Arial",18)
oWordRef.Bold
oWordRef.EditGoTo("\EndofDoc")
oWordRef.WordLeft(4)
oWordRef.SelectCurWord
oWordRef.CharColor(2)
Position.hlp is mailed to me by John Muehleisen and I forwarding it to you.