Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mail Merge class not works ?!?
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Mail Merge class not works ?!?
Divers
Thread ID:
00172514
Message ID:
00172514
Vues:
59
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.
Répondre
Fil
Voir

Click here to load this message in the networking platform