Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Word 7 as an OLE server
Message
De
17/09/1996 09:49:10
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Using Word 7 as an OLE server
Divers
Thread ID:
00007996
Message ID:
00007996
Vues:
80
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
Fil
Voir

Click here to load this message in the networking platform