Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mail merging problems
Message
De
18/06/2004 06:34:37
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Mail merging problems
Divers
Thread ID:
00914952
Message ID:
00914952
Vues:
35
Hello,

I'm trying to merge an existing database with an empty Word-document. The MailMerge-foundation class is teh perfect tool to do so but I'm not using a database-container but only a database. What settings
do I have to set to achieve this ?

LOCAL aFlds
DIMENSION aflds[4,1]
aflds[1,1] = "Name"
aflds[2,1] = "Address"
aflds[3,1] = "Place"
aflds[4,1] = "Country"

CREATE CURSOR Customers (Name c(40), Address c(80), Place c(40), Country c(30))
INSERT INTO Customers VALUES ("Cust1","Address 1","Somewhere","Belgium")
INSERT INTO Customers VALUES ("Cust2","Address 2","Somewhere","Belgium")
INSERT INTO Customers VALUES ("Cust3","Address 3","Somewhere","Belgium")

SELECT 'Customers'
COPY all to "c:\" + "customers" type fox2x as 1252

WITH THISFORM._mailmerge
.cAppTitle = "Customer merging"
.nWordProc = 1
.nNewDoc = 1
.nTemplate = 1
.cAlias = "Customers"
.cDBCTable = ""
.cDBCName = ""
ACOPY(aflds, .aAutoFields)
.MakeOutput()
ENDWITH
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform