Joined: 03 Mar 2009
|Posted: Tue Mar 03, 2009 10:02 am Post subject: Writer table column resize
I'm trying to resize the width of a cell in a row from java (in OOWriter). Accessing the row and determing the actual positions of the array TableColumnSeparator is no problem:
But The issue is :
Setting back the modified 'TableColumnSeparator' array as new property value , doesn't change the property.
Following Algo. doesn't update the row property(TableColumnSeparators) value.
//Get the current value: This works and returns correct data
colSepsArray = (TableColumnSeparator) xRowProps.getPropertyValue("TableColumnSeparators");
//I modify the 'postion' for each seprator in the array (all summing up to 10000)
colSepsArray[colIndex].Position = (short) Math.ceil(RelativeWidth);
//Set back the property for row
//To check: I extract the property again: But these are still the same as were orignally.
Thanks in advance,