OTS Informationstechnologie AGHello,
first: I work with OOo 2.0, UNO API with Java.
I have an Java application for automated generating documents, everything
works fine except one point: I can't change the default bullet via API.
Though I can change the BulletChar in the propertyValue like this:
...
if (properties[j].Name.equals("BulletChar")) {
properties[j].Value = "-";
}
...
But as soon as I call the indexReplace method like this
indexReplace.replaceByIndex(0, propertiesTest);
I get an exception (IllegalArgumentException).
My propertyValue Array has 13 entries. When I copy the original array to a
new array with only the first 10 entries I don't get an exception at
replacing. Problem: the entries for BulletChar / BulletFontName are number
11 and 12 (index number). So I made an new array with 10 entries where I
left out these 3:
1 ParentNumbering OPTIONAL
4 CharStyleName OPTIONAL
5 StartWith OPTIONAL
So I could include the entries for BulletChar and BulletFontName.
Unfortunately this didn't work and I got the same exception
(IllegalArgumentException).
Is there any way to replace a propertiesValue array with more than 10
entries without getting an exception so I could change the default bullet?
Thank for any help!
Best regards
Stefan