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?)
How to hide empty graph
Re: How to hide empty graph
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.
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
thanks for the quick reply!
But how do I check if there is data in the graph?
But how do I check if there is data in the graph?
Re: How to hide empty graph
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!
if (Chartname.Count == 0)
Chartname.Enabled=false;
or even shorter:
Chartname.Enabled=(Chartname.Count != 0)
THNX!
Re: How to hide empty graph
Hello.
As a way you could write next expression in the Highlight Conditions and uncheck Enabled option there.
Thank you.
As a way you could write next expression in the Highlight Conditions and uncheck Enabled option there.
Code: Select all
Chartname.Count == 0