Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE - Controlling Word97
Message
From
09/06/1998 11:25:37
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
OLE - Controlling Word97
Miscellaneous
Thread ID:
00106319
Message ID:
00106319
Views:
69
I have an app that I need to populate bookmarked areas in Word. Getting the values into word is the easy part, trying to close word seems to cause problems.

Below is my code:

wrd = CREATEOBJECT("word.basic")

wrd.appmaximize
wrd.fileopen ("s:\kramer\arrest\sample.doc")
wrd.viewpage

wrd.ww7_EditGoTo("test1")
wrd.Insert("150")
wrd.FileClose()
wrd.application.quit


If I create the object as an application object, I get other errors, including the fileopen(). However, in this format, I can't quit word. I get an unknown name error on the "wrd.application.quit" line.

I have pulled some documents from technet and Microsoft but I haven't found an article that opens & closes a document without saving.

Thanks in advance.

Scott
Next
Reply
Map
View

Click here to load this message in the networking platform