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.
two questions
two questions
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.
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.
two questions
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.
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.
two questions
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.
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.