Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mail Merge class not works ?!?
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Mail Merge class not works ?!?
Miscellaneous
Thread ID:
00172514
Message ID:
00172514
Views:
58
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
REPLACE Name WITH "Some Name", 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