Does anyboody have any working code to merge a WP form file and a Fox free table via OLE. I'm working with WP suite 2000 (aka WPWIN9)
This code fragment will give you and idea what I'm trying to do
oWP = CreateObject("WordPerfect.PerfectScript")
With oWP
.MergeODBC("Visual FoxPro Tables","aixtabs")
.MergeRun(2,addbs(datapath)+"plus4a.wpd",4,addbs(datapath)+"aixtabs.dbf",3)
.AppMaximize
endwith
The smaller question that might get me going again is where can I find the enumeration values matching the constants listed below.
The
.MergeRun(
FormFileType:Current!;
FormFile: addbs(datapath)+"plus4a.wpd"
DataFileType:ODBC!;
DataFile:"df.dbf";
OutputFileType:ToNewDoc!)
Randy Hersom
President, Habilitation Software Inc.