Formatting Result of Aggregate Functions

Stimulsoft Reports.WPF discussion
Post Reply
Michele
Posts: 10
Joined: Thu Sep 08, 2011 3:17 am
Location: Italia

Formatting Result of Aggregate Functions

Post 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
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Formatting Result of Aggregate Functions

Post by HighAley »

Hello.

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

Thank you.
Post Reply