Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mailing With VFP & Word'97
Message
De
20/05/1998 09:51:24
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
20/05/1998 09:43:45
Paulo Hakme
Otto Bock Do Brasil Ltda.
Campinas, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00100520
Message ID:
00100526
Vues:
29
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform