Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error Saving word document
Message
From
16/04/2001 08:07:57
 
 
To
16/04/2001 03:27:40
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00495708
Message ID:
00495727
Views:
20
>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
Map
View

Click here to load this message in the networking platform