Problem using Call-out COM with WORD
Author: rmeaille@medinfo.fr (foster06)
Hello all,
I tried to change all my "oild-fashion" call to Winword to the new one using signatures.
It's a very huge work and more when you don't understand why a simple call does not work.
As the Uniface documentation said (see IntegrateComWord 2.0), I have already created my WORD application.
I can open a file using WORD_DOCUMENTS signature.
2 problems raised :
1) first, I would like to keep in a variable the DOCUMENT object returned by Open method. I alway have error. I think that it's impossible. Do you agree ?
2) second, I need the DOCUMENT object, so I created the Operation ACTIVE_DOCUMENT on WORD Object.
ACTIVE_DOCUMENT has ActiveDocument as literal Name ans return value in fist parameter in Detail of Operation.
ACTIVE_DOCUMENT has one OUT parameter that is a Handle on WORD_DOCUMENT.
The signature WORD_DOCUMENT is created in my application with Implementation COM.
When I do the following :
$H_WORD$->DOCUMENTS($DOCUMENTS$)
$DOCUMENTS$->OPEN(FILENAME)
$H_WORD$->ACTIVE_DOCUMENT($DOCUMENT$)
I have a procerror = -155
"ICCDRV-COM-ERR Error with ICC system occurred, UNIFACE error -155 occurred while processing parameter 1 in internal handler "Out::EXOB2UF""
I don't understand why. Is anybody has a idea and could help me.
Thanks a lot.




