Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mailing With VFP & Word'97
Message
From
20/05/1998 09:51:24
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
20/05/1998 09:43:45
Paulo Hakme
Otto Bock Do Brasil Ltda.
Campinas, Brazil
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00100520
Message ID:
00100526
Views:
30
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform