I have problem with complex expression which contains SumRunning function. But I haven't got source code of stimulsoft, I can't debug this problem. Expression is in field added in Data band ...
Example expression:
Code: Select all
{IS.Utils.FunctionEvaluator.Iif(report_Table.uctycis_5441_zustatek == 1m ,IS.Utils.FunctionEvaluator.Iif("00" == "0" ,report_Table.castka_psm ,0m ) + SumRunning(group_1,(IS.Utils.FunctionEvaluator.Iif(report_Table.u_dokl_p_0_strana == 1m ,report_Table.u_dokl_p_0_castka ,0m ) ) - (IS.Utils.FunctionEvaluator.Iif(report_Table.u_dokl_p_0_strana == 2m ,report_Table.u_dokl_p_0_castka ,0m ) ) ) ,((-1m ) * IS.Utils.FunctionEvaluator.Iif("0" == "0" ,report_Table.castka_psm ,0m ) ) + SumRunning(group_1,(IS.Utils.FunctionEvaluator.Iif(report_Table.u_dokl_p_0_strana == 2m ,report_Table.u_dokl_p_0_castka ,0m ) ) - (IS.Utils.FunctionEvaluator.Iif(report_Table.u_dokl_p_0_strana == 2m ,report_Table.u_dokl_p_0_castka ,0m ) ) ) ) }
Code: Select all
Exception has been thrown by the target of an invocation.
Code: Select all
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at Stimulsoft.Base.StiActivator.CreateObject(Type type)
at Stimulsoft.Report.StiReport.GetReportsFromAssembly(Assembly assembly)
at Stimulsoft.Report.StiReport.GetReportFromAssembly(Assembly assembly)
at Stimulsoft.Report.StiReport.CreateInstance()
at Stimulsoft.Report.StiReport.Compile(String path, Stream stream, StiOutputType outputType, Boolean autoCreate, Object standaloneReportType)
at Stimulsoft.Report.StiReport.Compile(String path, Stream stream, StiOutputType outputType, Boolean autoCreate)
at Stimulsoft.Report.StiReport.Compile(String path, StiOutputType outputType, Boolean autoCreate)
at Stimulsoft.Report.StiReport.Compile(String path, StiOutputType outputType)
at Stimulsoft.Report.StiReport.Compile(StiOutputType outputType)
at Stimulsoft.Report.StiReport.Compile()
at Stimulsoft.Report.Design.Controls.StiDesignerPreviewControl.btRefresh_Click(Object sender, EventArgs e)
Thank you.