General information
Category:
COM/DCOM and 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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only