Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP and WORD
Message
De
18/12/1997 15:54:47
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00066799
Message ID:
00067051
Vues:
26
I have tried it. I successfully automate Word from a few different places in my app. With or without the '=', works the same.

>Well, why don't you try it? Save your work!
>
>>Uh, Ok.
>>
>>>Well, let him try it.
>>>
>>>Joe
>>>
>>>>the '=' is no longer necessary in VFP 5.0
>>>>
>>>>
>>>>>Try using
>>>>>
>>>>>=oleobj.filenew()
>>>>>
>>>>>The important part is the equal sign.
>>>>>
>>>>>Joe
>>>>>
>>>>>>Hi
>>>>>>
>>>>>>
>>>>>>I am executing some OLE statements in order to produce a Word
>>>>>>Document from VFP 5.0 Prof.
>>>>>>
>>>>>>Word version is 7.0 (Office 95) + Windows 95.
>>>>>>
>>>>>>Statements are like this:
>>>>>>
>>>>>>oleobj = createobject("word.basic")
>>>>>>
>>>>>>oleobj.filenew
>>>>>>
>>>>>>oleobj.insert("Any Text" + table.field)
>>>>>>
>>>>>>oleobj.fileclose
>>>>>>
>>>>>>oleobj.filequit
>>>>>>
>>>>>>etc.
>>>>>>
>>>>>>
>>>>>>Any statement after "createobject" generates this error message:
>>>>>>
>>>>>>OLE Error 0x80020006 (Error Number 1426).
>>>>>>
>>>>>>Please, Does anyone know about this? What is the problem?
>>>>>>
>>>>>>Thanks
>>>>>>
>>>>>>Juan Carlos
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform