Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word.Basic and the FileOpen command
Message
From
06/06/1998 09:34:10
Jacci Adams
Lindsay-Adams Consulting
Louisville, Ohio, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00105311
Message ID:
00105501
Views:
33
Hi Ben,

Is there a particular reason why you need to use Word Basic. If this is going to be used with Word 97, you will get errors because Word97 doesn't recognize Word Basic methods and properties. If some of your clients have Word 95, and some have Word 97 you are going to have a problem, you will have to check the version and create 2 separate programs one for each different version of Word. Word 97 doesn't understand Word Basic and Word 95 can't interpret VBA. MS sure knows how to get ya don't they?

I've been bitten by this.

Jacci

>Hello All,
>
>I'm trying to instantiate a Word.Basic class object which will open a file. When I try the following code, I get an OLE error on the last line:
>
>oword = CreateObject("Word.Basic")
>oword.appshow
>oword.FileOpen("c:\temp\temp.doc")
>
>Can anyone tell me the correct Word.Basic syntax? Recording a macro in the Word 97 Visual Basic Editor is no help, since it uses VBA syntax as opposed to Word.Basic.
>
>Also, can anyone tell me where to find a Word.Basic help file, so I don't have to keep bothering people up here?
>
>Thanks,
>
>Ben Holton
Previous
Reply
Map
View

Click here to load this message in the networking platform