How to write StiExpression for Count() in code
Posted: Mon Feb 26, 2018 4:15 pm
Hello Stimulsoft Support,
i build my Report completly in C# Code. I'm using GroupHeaderBand and GroupFooterBand too. It worked fine so far. Now i want to use the Group Count() for displaying the number of grouped Elements for each group. How can i write the StiExpression with using Count()?
I tried the following but nothing works:
Is it possible to use Count() in StiExpression Definition in C# code?
Thanks and regards
Thorsten Pontow
i build my Report completly in C# Code. I'm using GroupHeaderBand and GroupFooterBand too. It worked fine so far. Now i want to use the Group Count() for displaying the number of grouped Elements for each group. How can i write the StiExpression with using Count()?
I tried the following but nothing works:
Code: Select all
StiText groupHeaderBandTextComponent = new StiText
{
...
Text = new StiExpression(@"{Count()}"),
... };
Code: Select all
StiText groupHeaderBandTextComponent = new StiText
{
...
Text = new StiExpression(@"{{Count()}}"),
... };
Code: Select all
StiText groupHeaderBandTextComponent = new StiText
{
...
Text = new StiExpression("{{Format(\"{0}\", Count())}}"),
... };
Thanks and regards
Thorsten Pontow