Hi, I have been using a script which extracts data from a word document. However, the script suddenly stopped working. Following sequence of command reproduces the problem I am facing. Once I get the "ValueError" exception, any further operations on Find object result in a segfault. I do not know what all has changed on my machine since I ran the script in the past. I tried reinstalling comtypes & python to no avail. I am using comtypes version 0.4.2. Can somebody give my any advice on finding out root cause of the problem?
Regards, Suraj Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on win32 >>> import comtypes.client >>> w = comtypes.client.CreateObject('Word.Application') # Generating comtypes.gen._00020905_0000_0000_C000_000000000046_0_8_2 # Generating comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0 # Generating comtypes.gen.stdole # Generating comtypes.gen._2DF8D04C_5BFA_101B_BDE5_00AA0044DE52_0_2_2 # Generating comtypes.gen.Office # Generating comtypes.gen._0002E157_0000_0000_C000_000000000046_0_5_3 # Generating comtypes.gen._2DF8D04C_5BFA_101B_BDE5_00AA0044DE52_0_2_4 # Generating comtypes.gen.VBIDE # Generating comtypes.gen.Word >>> d = w.Documents.Add() >>> s = d.Content.Find >>> f = s.Font Traceback (most recent call last): File "<pyshell#6>", line 1, in <module> f = s.Font ValueError: Procedure probably called with too many arguments (4 bytes in excess) >>> ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ comtypes-users mailing list comtypes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/comtypes-users