dataCrossDataBand.datacount dynamic

Stimulsoft Reports.NET discussion
Post Reply
edesio
Posts: 8
Joined: Fri Apr 03, 2020 12:09 pm

dataCrossDataBand.datacount dynamic

Post by edesio »

Hello,

How can i set dinamic value in dataCrossDataBand.countData?

For example:

i'm using dinamic datasource and i'm filtering my dataCrossDataBand, i need set a value in dataCrossDataBand.countData with my calc.

my crossdataband has 8 collumns i need fill de empty colluns, i'd like set in dataCrossDataBand2.countData = (8 - dataCrossDataBand.countData),

I know I can set the value 4 in the dataCrossDataBand2.countData, but my datasource can change, in my example the value is fixed but it can change.
value fixed.png
value fixed.png (44.16 KiB) Viewed 866 times
value dynamic.png
value dynamic.png (37.57 KiB) Viewed 866 times
result.png
result.png (9.92 KiB) Viewed 866 times
Report_modified.mrt
(28.39 KiB) Downloaded 140 times
Attachments
Datasource.xlsx
(4.82 KiB) Downloaded 131 times
Report_modified.mrt
(28.39 KiB) Downloaded 127 times
Datasource.xlsx
(4.82 KiB) Downloaded 142 times
Lech Kulikowski
Posts: 7344
Joined: Tue Mar 20, 2018 5:34 am

Re: dataCrossDataBand.datacount dynamic

Post by Lech Kulikowski »

Hello,

You can set it in the BeforePrint event of the CrossDataBand component:
CrossDataBand2.CountData = 8 - Planilha1.Count

Thank you.
Post Reply