Menu

#113 Word9 unit conversion functions fail

open
nobody
com (105)
5
2004-05-28
2004-05-28
No

The unit conversions functions of Word9 fail with an
exception. Here is an example using CentimetersToPoint:

>>> app.CentimetersToPoints
<bound method _Application.CentimetersToPoints of
<win32com.gen_py.Microsoft Word 9.0 Object
Library._Application instance at 0x20221704>>
>>> app.CentimetersToPoints(1.0)
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
File "win32com\gen_py\00020905-0000-0000-C000-
000000000046x0x8x1.py", line 14423, in
CentimetersToPoints
return self._oleobj_.InvokeTypes(371, LCID, 1, (4, 0),
((4, 1),),Centimeters)
com_error: (-2147467259, 'Unbekannter Fehler', None,
None)

A workaround for this problem was suggested some time
ago (http://groups.google.de/groups?hl=de&lr=&ie=UTF-
8&threadm=35D6EBE5.511C5430%
40appliedbiometrics.com&rnum=2&prev=/groups)

Discussion