Singaja Newbie

Joined: 21 Nov 2006 Posts: 1
|
Posted: Wed Nov 22, 2006 1:51 am Post subject: [Java] Getting/setting variables of document |
|
|
Hello
I've encountered a problem in Java while trying to access Variables(created by Insert->Field->Others->Variables) in openoffice document. I have no problem getting and setting values of User Fields. Here is a snippet of my code
| Code: |
//I access particular userField / Variable
Object fieldMaster = xNamedFieldMasters.getByName(xNamedFieldMastersNames[i]);
XPropertySet xPropertySet = (XPropertySet)UnoRuntime.queryInterface(
XPropertySet.class, fieldMaster);
//Variable has no content property(and nothing similar actually) It works for UserFields
xPropertySet.setProperty("content", "some new value");
|
Is there another way of accessing variables to get/set their values , any ideas? |
|