OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Writer table column resize

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
bakshiabhishek
General User
General User


Joined: 03 Mar 2009
Posts: 14

PostPosted: Tue Mar 03, 2009 10:02 am    Post subject: Writer table column resize Reply with quote

Hi All,
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
xRowProps.setPropertyValue("TableColumnSeparators", colSepsArrayNew);

//To check: I extract the property again: But these are still the same as were orignally.

Thanks in advance,
Abhishek.
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group