Re: [sc-dev] Conditional Formatting with newly inserted cellstyle (Java)

2010-06-09 Thread Peter Eberlein

Hi Niklas,
Niklas Nebel schrieb:

On 06/08/10 16:37, Peter Eberlein wrote:
after inserting a new cellstyle I cleared all conditional format 
entries and inserted a new one with the new cellstyle.
It seems, the new conditional format doesn't reflect the new style in 
the sheet. Only if the style exists yet, it is visible via GUI.

Nevertheless the entry in Format/Conditional Formatting.. is correct.

How can I force an update of the style?


Are you sure the style contains any format attributes? Remember you have 
to insert a new style before setting format properties (generally for 
cell styles, not only for conditional formatting).



That's the point, after correcting this, all works fine.

Thanks

Peter


-
To unsubscribe, e-mail: dev-unsubscr...@sc.openoffice.org
For additional commands, e-mail: dev-h...@sc.openoffice.org



Re: [sc-dev] Conditional Formatting with newly inserted cellstyle (Java)

2010-06-08 Thread Niklas Nebel

On 06/08/10 16:37, Peter Eberlein wrote:
after inserting a new cellstyle I cleared all conditional format entries 
and inserted a new one with the new cellstyle.
It seems, the new conditional format doesn't reflect the new style in 
the sheet. Only if the style exists yet, it is visible via GUI.

Nevertheless the entry in Format/Conditional Formatting.. is correct.

How can I force an update of the style?


Are you sure the style contains any format attributes? Remember you have 
to insert a new style before setting format properties (generally for 
cell styles, not only for conditional formatting).


Niklas

-
To unsubscribe, e-mail: dev-unsubscr...@sc.openoffice.org
For additional commands, e-mail: dev-h...@sc.openoffice.org