Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Word 7 as an OLE server
Message
From
17/09/1996 09:49:10
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Using Word 7 as an OLE server
Miscellaneous
Thread ID:
00007996
Message ID:
00007996
Views:
81
I am trying to use Word 7.0 as an ole server from within Visual Foxpro 30b
to do so i give these commands (Can be done in command venster).

lcWordobj = CREATEOBJECT('Word.Basic')
lcWordobj.Appshow
lcWordobj.FileNew
lcWordobj.Fileclose
lcWordobj.appclose

a new file is created No problems at all.

But now i want to create a new file based on existing templates which can be found from within VFP

lcWordobj = CREATEOBJECT('Word.Basic')
lcWordobj.Appshow
lcWordobj.FileNew.Template = 'FAX.DOT'

The following error occurs:
FileNew does not evaluate to an object member

A new file is created in word but not based on the fax.dot but on normal.dot

I've tried to find the answer to this here:
1 Developer Network cd
2 Wrdbasic help from word 7.0

None of these came up with the answer any ideas anyone
Reply
Map
View

Click here to load this message in the networking platform