Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mailing With VFP & Word'97
Message
From
20/05/1998 09:43:45
Paulo Hakme
Otto Bock Do Brasil Ltda.
Campinas, Brazil
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Mailing With VFP & Word'97
Miscellaneous
Thread ID:
00100520
Message ID:
00100520
Views:
105
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
Next
Reply
Map
View

Click here to load this message in the networking platform