I have a document that uses some custom properties.
These properties are used in other documents, so I want to use them.
I tried to retrieve the custom properties and modify the texts associated with them.
Code: Select all
XPropertySet xCustomProperty = (XPropertySet)((XMultiServiceFactory)TextDocument).createInstance("com.sun.star.text.textfield.docinfo.Custom");
xCustomProperty.setPropertyValue("Name", new uno.Any("CustomProperty1"));
xCustomProperty.setPropertyValue("CurrentPresentation", new uno.Any("TextForProperty"));
xCustomProperty.setPropertyValue("IsFixed", new uno.Any(true));
What did I do for a mistake ?
Thanks