Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word MailMerge - Office 2000 vs Office XP w/ VFP 6
Message
De
24/01/2002 13:51:19
 
 
À
24/01/2002 13:27:17
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00609065
Message ID:
00609941
Vues:
24
It is not a problem with Word XP
I had the user record a MACRO of attaching the DataSource and no errors occured.

** MACRO FROM WORD XP
ActiveDocument.MailMerge.MainDocumentType = wdFormLetters
ActiveDocument.MailMerge.OpenDataSource Name:= _
"C:\WINDOWS\TEMP\ATTORNEYS.DBF", ConfirmConversions:=False, ReadOnly:= _
False, LinkToSource:=True, AddToRecentFiles:=False, PasswordDocument:="", _
PasswordTemplate:="", WritePasswordDocument:="", WritePasswordTemplate:= _
"", Revert:=False, Format:=wdOpenFormatAuto, Connection:= _
"DSN=FoxPro Files Word;UID=;PWD=;SourceDB=C:\WINDOWS\TEMP;SourceType=DBF;Exclusive=No;BackgroundFetch=Yes;Collate=MACHINE;Null=Yes;Deleted=Yes;" _
, SQLStatement:="SELECT * FROM ATTORNEYS.DBF", SQLStatement1:="", SubType:=wdMergeSubTypeOther


** From Object Browser in XP
Sub OpenDataSource(Name As String, [Format], [ConfirmConversions], [ReadOnly], [LinkToSource], [AddToRecentFiles], [PasswordDocument], [PasswordTemplate], [Revert], [WritePasswordDocument], [WritePasswordTemplate], [Connection], [SQLStatement], [SQLStatement1], [OpenExclusive], [SubType])
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform