Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CreateNewDocument in Excel or Word
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
CreateNewDocument in Excel or Word
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01043559
Message ID:
01043559
Vues:
55
I need to create a Word or Excel document from VFP.
I am trying to use "CreateNewDocument" but can't seam to get the proper writing

Here is the code:

*-*-*-*-*-*
oWord = CREATEOBJECT( "word.application")
lcDoc = "testword.doc"

* I have tried
oWord.CreateNewDocument("testword.doc", .T., .T.)
* or
oWord.CreateNewDocument(lcDoc, .T., .T.)

*-*-*-*
and quite a few different versions but I always get error messages.

Can anyone tell me the proper way?
Thanks
Raymond Larche
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform