>I’m trying to create a mailing with the VFP 5.0 & Word’97.
>I used the following commands:
>
>oWord = createobject(“word.application”)
>WITH oword
> .documents.add()
> .activedocument.mailmerge.maindocumentType = 0 && WdformLetters
> .activedocument.mailmerge.opendataSource(“c:\temp\eng069.txt”)
>
>But, in the last line I got the follow error:
>
> Ole 0x80020005: incompatible type
>
>The .TXT file was generated by:
>Copy to
type delimited
>
>I don’t know if I forgot any commands.
>
>
>Thanks a Lot,
>
>Paulo Hakme
>Ottobock@lexxa.com.br
A txt file by default is not a compatible type unless opened in word and set as datasource first. There is mmerge.zip in files\classes section. Take a look at it.
Cetin