From: Suraj B. <sur...@gm...> - 2007-10-30 19:20:27
|
Is there a way to do the following? try: import comtypes.gen.Word except: comtypes.client.GetModuleContaining('Word.Application') import comtypes.gen.Word Right now what I am doing is: word_app = comtypes.client.CreateObject('Word.Application') import comtypes.gen.Word But it gives problems if I want to move creation of word_app in a function. Thanks & Regards, Suraj |