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

change the color of the text in the word document in java

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


Joined: 19 Jan 2011
Posts: 12

PostPosted: Wed Feb 08, 2012 9:20 pm    Post subject: change the color of the text in the word document in java Reply with quote

I want to change the color of the text,header,.... using java language
Doing using
XPropertySet xTextProps = UnoRuntime.queryInterface(XPropertySet.class, xTextCursor);
xTextProps.setPropertyName("charColor",Color.Green);
Back to top
View user's profile Send private message Send e-mail
sueme10
Newbie
Newbie


Joined: 15 Mar 2012
Posts: 2

PostPosted: Thu Mar 15, 2012 4:49 am    Post subject: Reply with quote

do it
xCursorProps.setPropertyValue("CharColor", color); xCursorProps.setPropertyValue("CharShadowed", false);
Back to top
View user's profile Send private message
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