Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp and word
Message
 
À
13/10/2000 04:53:41
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00428455
Message ID:
00440989
Vues:
16
I'm having problems with getting Word to do
anything via VFP. I'm using Word 6.

I keep getting a "Member Not Found" error
for example

********

loAppSearch=CREATEOBJECT("Word.document.6")
AppSearch=loAppSearch.FileSearch

* or

*******
ox = createobject("word.document")
With OX
mydoc = .Document.Add
EndWith
MyDoc.SaveAs FileName:="C:\Temp.doc"

********
* or

ox = createobject("word.document")
ox.FilePageSetup.PaperSize = 'Letter'

***
All which seem like simple routines but I can't get
them to work. CreateObject seems to be working
but as soon as I try to do something I get a
Ole Exception error 0x80030003 Member not found

Seems like something simple needs to be set to
get this going but I can't figure it out.

Any help would be appreciated.

Regards - D.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform