Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word 97 document
Message
 
 
To
08/10/1998 17:05:47
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00145212
Message ID:
00145226
Views:
30
Clark,

Everything you never wanted to know about Word can be found in C:\Program Files\MSOffice\Office\word\VBAWRD8.HLP your folders may vary I think it's also an optionally installed item too.

I think you have to call the SaveAs method and create a disk presence to actually get the document a name. But I've only been doing Word97 automation for about a week now. I've got it reading a doc for components to build another doc and generating a report that would be virtually undoable with a FRX based report.

>Is there a way to create a new document in word from VFP with a preselected file name ? In the following code :
>
>x = CreateObject('Word.Application')
>x.Documents.Add
>x.Visible = .t.
>
>a new doc is created, how can I create the file name for the doc or force it to be saved as a name and location I assign ? Is there documentaion for actions of Documents, I am familiar with Add and Open, but what else is available for manipulation of word 97 from
>VFP ?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform