Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word documents object
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00787113
Message ID:
00787114
Vues:
21
Nevermind! Something happened to word on this computer (not sure what...). I re-installed word and it seems to be working now!


>I have created a word template document as a report in which I replace many variables.
>
>
>HomeDir = SYS(5) + SYS(2003)
>lcDir1 = HomeDir+"\rpts"
>lcFile = "l_i_ssn.dot"
>mypath = lcDir1 + "\" + lcFile
>oWord = CreateObject("Word.Application")
>oDoc = oWord.Documents.Open(mypath)
>
>
>The last line is giving me a "Member DOCUMENTS does not evaluate to an object" error. I haven't had this happen before and can't seem to figure out why or what this means. Do I have a typo? Have I forgotten something? Any help appreciated!
>Thanks,
>Kevin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform