[python-win32] Word Automation Question

Magnus Lycka magnus@thinkware.se
Thu, 24 Oct 2002 00:43:30 +0200


At 18:18 2002-10-23 -0400, Bill Witherspoon wrote:
>        myRange.InsertAfter (labelinfo['metricsize'] + "\n")

Does the '\n' correspond to typing Shift-Enter?
If you could make a paragraph break (like typing Enter in Word)?

I think this would be:

myRange.InsertAfter(labelinfo['metricsize'])
myRange.InsertParagraphAfter()

Then I think you could...

>myRange.Lines(1).Font.Size =3D 22
>myRange.Lines(2).Font.Size =3D 50   #for lines 1, and 2 resp.

...use myRange.Paragraphs(1).Font.Size =3D 22


--=20
Magnus Lyck=E5, Thinkware AB
=C4lvans v=E4g 99, SE-907 50 UME=C5
tel: 070-582 80 65, fax: 070-612 80 65
http://www.thinkware.se/  mailto:magnus@thinkware.se