>I am using the .opendatasource on an word template using automation thru VFP. The parameters I am using are (,1,.f.) What are all of the parameters for this anyways? > > The problem is when I use this code it works on some machines and not on others and I am not sure why. They all run word 97 SP2 and windows 2000 SP4 or XP. Some work fine with it and some get the error "OLE IDispatch exception code 0 from Microsoft Word: Word was unable to open the data source..." Any ideas on how I can get them all working for me?