| View previous topic :: View next topic |
| Author |
Message |
warthog982 Newbie

Joined: 26 Oct 2006 Posts: 4
|
Posted: Mon Nov 06, 2006 12:48 pm Post subject: Another Novice Question: Keywords |
|
|
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 |
|
 |
JohnV Administrator

Joined: 07 Mar 2003 Posts: 8978 Location: Lexinton, Kentucky, USA
|
Posted: Mon Nov 06, 2006 1:14 pm Post subject: |
|
|
Does this Basic code help? | Code: | Sub Main
oDoc = ThisComponent
K = oDoc.DocumentInfo.Keywords
REM "K" is a string.
End Sub |
|
|
| Back to top |
|
 |
warthog982 Newbie

Joined: 26 Oct 2006 Posts: 4
|
Posted: Tue Nov 07, 2006 8:01 am Post subject: |
|
|
John -
It did point me in the right direction; thanks for the assist - I owe you a cold one... |
|
| Back to top |
|
 |
|