Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why my Mail Merge Class not working
Message
From
30/12/1998 02:12:42
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Why my Mail Merge Class not working
Miscellaneous
Thread ID:
00171455
Message ID:
00171455
Views:
53
I have VFP 6.0 with SP1 installed. I download and install a vfp6gal.exe (update of FoxPro galerry and foundation classes) from MicroSoft but every time I started my code and the Mail Merge trying to open source file I have the same error:
Error # 1426 in mailmerge8(63): OLE error code 0x80020005: Type mismatch.
Here is my code:

CREATE DBF Test (Name C(40), Data_Of D(8))
DECLARE aaa[2]
aaa[1] = "Name"
aaa[2] = "Data_Of"
SELECT Test
USE TEST AGAIN SHARED
APPEND BLANK
SET DATE GERMAN
REPLACE Name WITH "AAAAAAAAAAAAAAAA", Data_Of WITH {^1998-12-31}
******************************************************
** the following part of code I take from Solution ***
******************************************************
WITH ThisForm.Mailmerge1
.cAppTitle = "My Application"
.nNewDoc = 1
.nTemplate = 1
.cAlias = ALIAS()table or view
ACOPY(aaa, .aAutoFields)
.MakeOutput()
ENDWITH
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Reply
Map
View

Click here to load this message in the networking platform