General information
Category:
COM/DCOM and OLE Automation
>Well I read the article properly and changed the save as line to
>
>loWord=CREATEOBJECT("Word.Application")
>loWord.visible=.t.
>loDocument = loWord.Documents.Add()
>loSelection = loWord.Selection
>loSelection.TypeText("hello")
>&&loDocument.SaveAs("hello")
>loWord.WordBasic.FileSaveAs("hello")
>
>and that works.
>
But there's no reason you should be having to use the WordBasic object. loDocument.SaveAs should work. What happens if you add the .DOC extension or specify a path?
Tamar
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only