General information
Category:
COM/DCOM and OLE Automation
Hi to whoever,
I am working on a mail merge with word for windows. I have some
visual basic script and not real sure on how to convert to vfp.
Thanks... Eric
ActiveDocument.MailMerge.OpenDataSource Name:= _
"F:\APPS\MERGEDATA.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=F:\APPS;_
SourceType=DBF;_
Exclusive=No;_
BackgroundFetch=Yes;_
Collate=MACHINE;Null=Yes;Deleted=Yes;" _
, SQLStatement:="SELECT * FROM MERGEDATA", SQLStatement1:=""
Application.MailingLabel.DefaultPrintBarCode = False
Application.MailingLabel.CreateNewDocument Name:="", _
Address:="", AutoText _
:="ToolsCreateLabels1", LaserTray:=wdPrinterManualFeed
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only