Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: OLE
Miscellaneous
Thread ID:
00474367
Message ID:
00474373
Views:
20
>A colleague has an application that displays Word, thereby enabling users to enter information into a template document. Can anyone advise on how to save the document as a specific filename via OLE after the information has been entered?
>
>Thanks
>
>Michelle

Assuming you have Word instantiated, I use o.Word

The syntax I used for 'saving as' is:

#DEFINE wdFormatDocument 0

oWord = CREATEOBJECT("Word.application")

oWord.ActiveDocument.SaveAs(lcFullWordDocPath,wdFormatDocument,.F.,"",.F.,"",.F.,.F.,.F.,.F.,.F.)

oWord.ActiveDocument.Close
oWord.Application.Quit
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform