Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word documents object
Message
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00787113
Message ID:
00787114
Views:
20
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform