Ask Your Question
0

Font Size in ChartTitle with UNO

asked 2018-05-11 04:39:27 +0200

How i can set a Font Size in a ChartTitle with UNO??

i have this:

aTitleProp = query_interface(XPropertySet, chartDoc.getTitle())
aTitleProp.setPropertyValue("String", "a titile")
aTitleProp.setPropertyValue("CharHeight", 16.0)

but this dont work...

i save my file:

xStorable = UnoRuntime.queryInterface(XStorable, xComp)
xStorable.storeToURL(url, None)

but de font size is diferent .

edit retag flag offensive close merge delete

Comments

Where is the chart located? Writer, Calc, Draw,...? Is it an ordinary chart or something special like presentation chart or pivot table chart? It might be, that you need to call "update".

Regina gravatar imageRegina ( 2018-05-11 20:54:46 +0200 )edit

On impress, the types of graph are pie and bar

S13g3lb4um gravatar imageS13g3lb4um ( 2018-05-15 19:03:59 +0200 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2018-05-15 23:57:40 +0200

Regina gravatar image

I cannot reproduce your problem in Basic. I have attached a file with a Basic macro MacroToExamineChartInside.odp. Perhaps you find the problem, if you compare the steps in Basic with your macro.

Do you really have a title? The title has to be actually inserted into the draw page. Only afterwards you can change its properties. Only size and position can be set on the not inserted object.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-05-11 04:39:27 +0200

Seen: 14 times

Last updated: May 15