Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get info from Word
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00545554
Message ID:
00545569
Views:
16
>Hello,
>
>I try to do the following:
>Open word with a new document. Let the user save the new document in any location. Then store the location and name of the new document in a table, without asking the user for this information.
>
>Can this be done??

Here's what I came up with.
loWord = CREATEOBJECT('Word.Application')
loDoc = loWord.Documents.Add()
loWord.Visible = .t.
DO WHILE !('\' $ loDoc.FullName)
	WAIT WINDOW "Please Save the Word Document" TIMEOUT 2
ENDDO 
lcFullPathName = loDoc.FullName
?lcFullPathName
Rip Ryness
International Falls, MN
Previous
Reply
Map
View

Click here to load this message in the networking platform