Page 1 of 1

Setting report property in designer using variable

Posted: Tue Oct 13, 2020 3:56 pm
by pvb
Hello,

How to set chart property using variable. I want to do it from report designer.
In my case I want to set Y axis format using previously defined variable. Something like this, but it does not work:
zal1.png
zal1.png (7.61 KiB) Viewed 5273 times
How to do it?

Re: Setting report property in designer using variable

Posted: Wed Oct 14, 2020 1:34 pm
by HighAley
Hello,

It's impossible to set the Format from a variable.
But you could do it win the BeforePrint event of the chart

Code: Select all

Chart1.area.yAxis.labels.format = FormatVariable;
Thank you.

Re: Setting report property in designer using variable

Posted: Fri Oct 16, 2020 9:57 am
by pvb
Hello,

Thank you. It works fine :-)

Re: Setting report property in designer using variable

Posted: Mon Oct 19, 2020 1:57 pm
by Lech Kulikowski
Hello,

You are welcome.