Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why my Mail Merge Class not working
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Why my Mail Merge Class not working
Divers
Thread ID:
00171455
Message ID:
00171455
Vues:
54
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.
Répondre
Fil
Voir

Click here to load this message in the networking platform