Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newbie and Word
Message
 
 
To
08/11/2002 16:41:15
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00720521
Message ID:
00720530
Views:
10
oWord = CreateObject("Word.Application")
oWord.Visible = .t.
oWord.Open("c:\HelloWorld.doc")

Do yourself a favor and go here: http://www.hentzenwerke.com/catalogpricelists/autofox.htm and buy the book.

Dan

>Hello Group.
>
>
>Trying to learn office automation.
>This code does not generate an error but does not open the helloworld.doc either.
>
>oWord = CreateObject("Word.Application")
>oDocument = oWord.Documents.Open("c:\HelloWorld.doc")
>
>Once it opened Word with no document and I had to reboot to close Word.
>Word showed up on my computer screen but did not appear in the task manager window.
>
>How do I get to open the document and view it?
>
>Thanks
>Jim
Previous
Reply
Map
View

Click here to load this message in the networking platform