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

changing default font???

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


Joined: 21 Dec 2005
Posts: 71

PostPosted: Thu May 18, 2006 9:55 pm    Post subject: changing default font??? Reply with quote

Dear All,

How to change the default font?

Here is the code I got from the examples...

Code:

String fontname = "Arial";
XMultiServiceFactory oDocMSF = (XMultiServiceFactory) UnoRuntime.queryInterface(XMultiServiceFactory.class, xSpreadsheetDocument);
          XInterface oInt1 = (XInterface) oDocMSF.createInstance("com.sun.star.style.CellStyle");
          XPropertySet oCPS1 = (XPropertySet)UnoRuntime.queryInterface( XPropertySet.class, oInt1);
           oCPS1.setPropertyValue("CharFontName", fontname);


This code is working fine when the OpenOffice Server is running on Windows,

but when the OpenOffice Server run on Linux, I cannot be able to change the default font(Bitstream Vera Sans) of OpenOffice.

Can anybody help me???
Its Urgent.

Thanks in advance,
Suresh.
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