OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

accessing data in section

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
whizzy
General User
General User


Joined: 14 May 2005
Posts: 42

PostPosted: Mon Jul 11, 2005 6:23 am    Post subject: accessing data in section Reply with quote

Hi

I have a writer document with a section called "security".
The section is at the top of the first page & is hidden.
The section contains the text "Main password list".

Via a macro how can I extract the text from within this section.

Regards
MARK
Back to top
View user's profile Send private message
Danad
OOo Advocate
OOo Advocate


Joined: 22 Feb 2004
Posts: 293
Location: Brasil

PostPosted: Tue Jul 12, 2005 4:29 pm    Post subject: Reply with quote

Code:

msgBox thisComponent.getTextSections().getByName("name").getAnchor().getString()

HTH
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group