Information générale
Titre:
Using Word 7 as an OLE server
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
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement