Board index » delphi » I have a big problem with "GetActiveOleObject"
Patrice CLEUX
Delphi Developer |
I have a big problem with "GetActiveOleObject"2004-02-12 01:31:35 AM delphi140 .... try VBA := GetActiveOleObject('Word.Application'); Winword:=VBA.WordBasic; except VBA := CreateOleObject(Word.Application); end; .... At the first call of my function, Word is created normally. A user closes Word but would not have. At the second call of the function, GetActiveOleObject('Word.Application') is done without error. But Winword:=VBA.WordBasic generates an error "The RPC Server is unavailable" and Word is created still normally. The problem, it is with each new call of the function, I have Word which to be created in the tasks even if there is of them already one. I'd like to take that which is in the tasks. Thank you in advance for your solutions |