Page 1 of 1

Problem with SumRunning

Posted: Thu Aug 12, 2010 2:57 am
by LukasT
Hello,
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  )  ) )   )  }
Exception:

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)
Please, tell me where is problem...
Thank you.

Problem with SumRunning

Posted: Thu Aug 12, 2010 3:37 am
by Jan
Hello Lukas,

Please send your report to support@stimulsoft.com. Also attach assembly which contain IS.Utils.FunctionEvaluator.Iif function.

Thank you.

Problem with SumRunning

Posted: Tue Aug 17, 2010 3:29 am
by Ivan
Hello,

The problem is solved.
The patch will be available in the next prerelease build from 17-Aug-2010.

Thank you.