How to change Font of Field NAMES in Open Office Base tables

Discuss the database features
Post Reply
mrawn
Posts: 3
Joined: Wed Nov 28, 2007 8:40 pm

How to change Font of Field NAMES in Open Office Base tables

Post by mrawn »

How may I change the Font of field NAMES (I know how to change Fonts of Field DATA) in Open Office Base TABLES (I know how to do this for FORM view field names). Thanks.
User avatar
DrewJensen
Volunteer
Posts: 1734
Joined: Sat Oct 06, 2007 9:01 pm
Location: Cumberland, MD - USA

Re: How to change Font of Field NAMES in Open Office Base tables

Post by DrewJensen »

At the moment I don't believe there is a way - in the 2.4 release of OpenOffice.org there will be a new API that would allow access to the dataview window controller - with that it may be possible to this win a script..but that is just total conjecture at this point.
Former member of The Document Foundation
Former member of Apache OpenOffice PMC
LibreOffice on Ubuntu 18.04
QuazzieEvil
Volunteer
Posts: 283
Joined: Tue Dec 04, 2007 6:38 pm
Location: Houston, TX

Re: How to change Font of Field NAMES in Open Office Base tables

Post by QuazzieEvil »

the following has worked for me under 2.3

Code: Select all

Sub tableFontEdit
	Dim Context As Object
	Dim DB AS Object
	Dim Conn As Object
	Dim Table As Object
	
	'GlobalScope.BasicLibraries.LoadLibrary("MRILib")
	Context=CreateUnoService("com.sun.star.sdb.DatabaseContext")
	DB=Context.getByName("OOFORUMTESTS")
	Conn=db.getConnection("","")
	Table=Db.Tables.getByIndex(0)
	With Table
		.FontHeight=20
		.FontName="Courier New"
	End With
	'mri table
	
End Sub
User avatar
DrewJensen
Volunteer
Posts: 1734
Joined: Sat Oct 06, 2007 9:01 pm
Location: Cumberland, MD - USA

Re: How to change Font of Field NAMES in Open Office Base tables

Post by DrewJensen »

Hi,

That is a nice example of how to change the font for the data, but it doesn't change the font for the field names unfortunately. At least not when I use it..
Former member of The Document Foundation
Former member of Apache OpenOffice PMC
LibreOffice on Ubuntu 18.04
QuazzieEvil
Volunteer
Posts: 283
Joined: Tue Dec 04, 2007 6:38 pm
Location: Houston, TX

Re: How to change Font of Field NAMES in Open Office Base tables

Post by QuazzieEvil »

aahh. font for the field names...missed that part..ooops
Post Reply