Information générale
Catégorie:
COM/DCOM et OLE Automation
RELEASE ALL LIKE o*
PUBLIC oWord
LOCAL oRange, oTable, nRecCount, nTotalOrders
LOCAL nRow
nRow = 0
oWord = CreateObject("Word.Application")
oWord.Documents.Add()
I think tat the error is generated by the CreateObject command
Remember that it gives me no error if I run it from VFP environment
>Can you post a code that generates this error?
>
>>The dot is present i forgot to write it in the message
>>:-)
>>
>>>I don't see a '.' (dot) in 'WORD APPLICATION'. It should be 'WORD.APPLICATION'.
>>>
>>>>No, it is installed and all works fine if I run the application from the VFP programming environment
>>>>
>>>>>You would get this error if there's no MS Word installed on the PC.
>>>>>
>>>>>>How come that I get the error Class definition WORD APPLICATION not defined
>>>>>>when i run an executable ?
>>>>>>This not happens in VFP environment.
>>>>>>Is there something (i'm sure there is) i should do in building my executable ?
>>>>>>Thanks
>>>>>>Alessio
Précédent
Suivant
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