Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Search VFP Path and Subfolders for DOC files.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Search VFP Path and Subfolders for DOC files.
Divers
Thread ID:
00630625
Message ID:
00630625
Vues:
74
I have the following code in Click event of a button

lcDocument = "pcbOil.doc"
ThisForm.Printdoc(lcDocument)

The custom method PrintDoc on my form is as follows:

PARAMETERS lcDocument
oWord = CreateObject("Word.Application")
oDoc = oWord.Documents.Open(lcDocument)
oDoc.PrintOut()

At the startup of my app, I establish the path in my Setup.prg file as follows:
SET PATH TO &gcPath

gcPath is assigned a value earlier of h:\labtemp;h:\upsi;h:\labnav

How do I make the line:

oDoc = oWord.Documents.Open(lcDocument)

properly search a subfolder beneath the folder h:\labnav named \letters for the file pcbOil.doc.

Thank You
Elgin Rogers
Epic Solutions
www.epicsolutions.net
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform