Re: [python-win32] Error in word with AddTextbox

2016-02-23 Thread Tim Roberts
Sylvain Fauveau wrote: > I'm trying to add a textbox in word with python 2.7 / pywin 220 Under Windows > Server 2008. > > from win32com.client import Dispatch, constants > word = Dispatch('Word.Application') > document = word.Documents.Add() > orientation = constants.wdTextOrientationHorizontal

[python-win32] Error in word with AddTextbox

2016-02-23 Thread Sylvain Fauveau
Hi.   I'm trying to add a textbox in word with python 2.7 / pywin 220 Under Windows Server 2008.   from win32com.client import Dispatch, constants word = Dispatch('Word.Application') document = word.Documents.Add() orientation = constants.wdTextOrientationHorizontal left = 100 top = 100 width = 20