Page 1 of 1
How to hide empty graph
Posted: Tue Oct 08, 2013 3:40 pm
by Arrow
Hi,
How can i hide an empty graph?
is there a property i overlooked or should i use the beforeprint event to check if the graph is empty to set the visible property (what check?)
Re: How to hide empty graph
Posted: Wed Oct 09, 2013 6:01 am
by HighAley
Hello.
There is no special property to hide empty chart. You could try to check if there data for it in the BeforePrint event.
Thank you.
Re: How to hide empty graph
Posted: Wed Oct 09, 2013 7:39 am
by Arrow
thanks for the quick reply!
But how do I check if there is data in the graph?
Re: How to hide empty graph
Posted: Wed Oct 09, 2013 7:55 am
by Arrow
I found it! It was so easy after all... --> Good tool!
if (Chartname.Count == 0)
Chartname.Enabled=false;
or even shorter:
Chartname.Enabled=(Chartname.Count != 0)
THNX!
Re: How to hide empty graph
Posted: Wed Oct 09, 2013 12:32 pm
by HighAley
Hello.
As a way you could write next expression in the Highlight Conditions and uncheck Enabled option there.
Thank you.