Hi Laurent,
Your code does not work (in Basic).
The number of sections is displayed by:
print ThisComponent.getTextSections().getCount()
Without any programming, the Navigator lists the sections in a document.
For further investigation, delete any confidential data in your document
and make it downloadable from a site like <http://www.mediafire.com/>
Regards
Bernard
Message de Crivello, Laurent date 2009-05-01 13:36 :
Dear All,
I have a Microsoft Word document with multiple Sections in it.
When I perform a Section enumeration, the result is '0' (see code below)
alltextSections = doc.getTextSections().getElementNames()
print len(alltextSections)
Is there an equivalent of Sections in OpenOffice which has another name ?
How to enumerate them then ?
Thanks a lot !
Laurent
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org