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

Another Novice Question: Keywords

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


Joined: 26 Oct 2006
Posts: 4

PostPosted: Mon Nov 06, 2006 12:48 pm    Post subject: Another Novice Question: Keywords Reply with quote

People -
I'm still pretty new to OpenOffice, but have managed to build a Java servlet that takes inputs from various sources and returns a MS Word document (among other formats) to the web user. One part I need to populate is the document's Keywords -- I've been flailing at this for the better part of the day and think I have an answer as far as adding a textfield, etc, to the document. Problem is, I want to add a textfield.docinfo.keywords and not one of my OOo jar files seems to have it. Am I missing something? Is there a better way of approaching this? As before, a cold one will be owed to the person who bails me out of this one...
Back to top
View user's profile Send private message Yahoo Messenger
JohnV
Administrator
Administrator


Joined: 07 Mar 2003
Posts: 9183
Location: Lexinton, Kentucky, USA

PostPosted: Mon Nov 06, 2006 1:14 pm    Post subject: Reply with quote

Does this Basic code help?
Code:
Sub Main
oDoc = ThisComponent
K = oDoc.DocumentInfo.Keywords
REM "K" is a string.
End Sub
Back to top
View user's profile Send private message
warthog982
Newbie
Newbie


Joined: 26 Oct 2006
Posts: 4

PostPosted: Tue Nov 07, 2006 8:01 am    Post subject: Reply with quote

John -
It did point me in the right direction; thanks for the assist - I owe you a cold one...
Back to top
View user's profile Send private message Yahoo Messenger
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