I have problem with compilation of my expressions...
I am using some of your functions and some of my functions added in StiFunctions. But compiller looks confused...
Expression:
Code: Select all
{Iif(Totals.Max(report_Table.u_dph_dokl_0_stat_dph ) == Totals.Min(report_Table.u_dph_dokl_0_stat_dph ) && Totals.Max(report_Table.u_dph_dokl_0_id_meny ) == Totals.Min(report_Table.u_dph_dokl_0_id_meny ) ,Iif(Totals.Max(report_Table.u_dph_dokl_0_plneni ) == Totals.Min(report_Table.u_dph_dokl_0_plneni ) ,Totals.Sum(group_1,report_Table.u_dph_dokl_0_zaklad ) ,Totals.Sum(group_1,Iif(report_Table.u_dph_dokl_0_plneni == 2 ,report_Table.u_dph_dokl_0_zaklad ,(-1 ) * report_Table.u_dph_dokl_0_zaklad ) ) ) ,0 ) }
Code: Select all
...\AppData\Local\Temp\wgyhfiry.0.cs(298,25) : error CS1525: Invalid expression term '=='
Code: Select all
public void GetTotal1(object sender, Stimulsoft.Report.Events.StiValueEventArgs e)
{
e.Value = == Totals.Min(report_Table.u_dph_dokl_0_stat_dph ) && Totals.Max(report_Table.u_dph_dokl_0_id_meny ) == Totals.Min(report_Table.u_dph_dokl_0_id_meny ) ;
}
public void compute_group_1_h1_addcompn_1__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
{
e.Value = System.String.Format("{0:###,###,###,##0.00}", ISK.Utils.FunctionEvaluator.Iif(Totals.Max(report_Table.u_dph_dokl_0_stat_dph ) this, "GetTotal1",ISK.Utils.FunctionEvaluator.Iif(Totals.Max(report_Table.u_dph_dokl_0_plneni ) this, "GetTotal2",Totals.Sum(group_1, this, "GetTotal3") ,Totals.Sum(group_1, this, "GetTotal4") ) ,0 ) );
}