two questions

Stimulsoft Reports.NET discussion
Post Reply
zjh111111
Posts: 7
Joined: Tue Dec 08, 2009 5:38 am

two questions

Post by zjh111111 »

1.I want to sum two decimal value in GroupFooterBand,and I write as {Sum(DataBand1,[PrintProcDT].DanXFJE+[PrintProcDT].ZuoFaJiaJia)},it can't work correctly
2.I can bind a datatable to a databand , as " report.RegData("PrintProcDT"), AllCaidt) ",but how to specify a value to a Text in report in c# code(not specify in design mode)?
help me,thanks.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

two questions

Post by Edward »

Hi,

Please modify your code as follows:

{Totals.Sum(DataBand1,[PrintProcDT].DanXFJE)+Totals.Sum(DataBand1,[PrintProcDT].ZuoFaJiaJia)}

Could you please provide some more detail for the second question.

Do you need to set Text property in runtime? If you need to build the report in runtime or set some properties of it, please see RunTimeBuildReport sample application from Stimulsoft Reports.Net standard installation.

Thank you.
zjh111111
Posts: 7
Joined: Tue Dec 08, 2009 5:38 am

two questions

Post by zjh111111 »

thanks Edward, but {Totals.Sum(DataBand1,[PrintProcDT].DanXFJE)+Totals.Sum(DataBand1,[PrintProcDT].ZuoFaJiaJia)},it shows an error,it isn't a valid expression,my stimulsoft report version is 2009.2.
And,my second question is:when I used group,and I want bind data to GroupHeaderBand,what can I to do?So I want to bind data directly to report 's Text.I used it: StiText Text4 = (StiText)(report.GetComponentByName("Text4")); Text4.Text = "123123"; it can't work. how to do?thanks.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

two questions

Post by Edward »

Hi

1) Please attach mrt file of your report for analysis.

2) In the BeforePrintEvent of the GroupHeader, please add the following code:

Text4.TextValue = "123123"

Thank you.
Post Reply