Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help - Passing a Default Directory to Word from VFP

Status
Not open for further replies.

dobber

Programmer
Aug 18, 2000
21
US
I use the run command from within VFP to use Word (RUN /N C:\PROGRAM FILES\MICROSOFT OFFICE\OFFICE\WINWORD.EXE) and I would like to be able to set the default directory that Word uses to open and save files to be the directory name contained within a variable in VFP. For example - I have a variable within VFP that contains C:\AUDITS, how can I call up Word (from within VFP) and have it's default directory (where it looks for files when you issue FILE, OPEN) automatically changed from C:\MY DOCUMENTS to C:\AUDITS?
 
The closest thing I could find, Dobber, was to use the /m switch to specify a startup macro, and somehow have that Word macro do the work.

For your purposes, would invoking Word via COM be sufficient? You'll have very fine control of everything.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top