Problem with SumRunning

Stimulsoft Reports.NET discussion
Post Reply
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Problem with SumRunning

Post 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.
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Problem with SumRunning

Post by Jan »

Hello Lukas,

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

Thank you.
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Problem with SumRunning

Post by Ivan »

Hello,

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

Thank you.
Post Reply