>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