Page 1 of 1

Formatting Result of Aggregate Functions

Posted: Thu Jun 19, 2014 2:01 pm
by Michele
Hi,
I'm building manually a Report (by code) and I need to format the Totals (Aggregate Functions) at the bottom of the report

...
Dim fText As StiText = New StiText(New RectangleD(pos, 0.3, columnWidth - gap, 0.5))
Dim func As String = "Sum"
fText.Name = "fText" + nameIndex.ToString()
fText.HorAlignment = StiTextHorAlignment.Right
fText.VertAlignment = StiVertAlignment.Center
fText.TextFormat = New Stimulsoft.Report.Components.TextFormats.StiNumberFormatService(1, ",", 2, ".", 3, True, True, " ")
fText.Text = String.Concat(func, ": {", func, "(Result." + Stimulsoft.Report.CodeDom.StiCodeDomSerializator.ReplaceSymbols(dataColumn.ColumnName) + ")}")
fText.ComponentStyle = "StyleTitoloLista"
footerBand.Components.Add(fText)
...

I'm setting TextFormat but nothing happens in the resulting report
Am I doing sometyhing wrong?

Thanks in advance
michele

Re: Formatting Result of Aggregate Functions

Posted: Fri Jun 20, 2014 1:50 pm
by HighAley
Hello.

Could you send us a sample project which reproduces the issue?

Thank you.