DataRelation/Parameters problem
Hello,
I have problem with data relations:
I made regular relation between 2 datasources and everything works ok until I put parameter into child datasource. After that I get this error:
FastReport.Net v1.3.41
Exception has been thrown by the target of an invocation.
Inner exception:
This row has been removed from a table and does not have any data. BeginEdit() will allow creation of new data in this row.
at System.Data.DataRow.GetDefaultRecord()
at System.Data.DataRow.get_Item(Int32 columnIndex)
at FastReport.Data.TableDataSource.GetValue(Column column)
at FastReport.Data.DataSourceBase.get_Item(Column column)
at FastReport.Data.Column.sOPadpeUk()
at FastReport.Report.lGrFHldUZ(String , Boolean )
at FastReport.Report.GetColumnValue(String complexName)
at FastReport.ReportScript.CalcExpression(String expression, Variant Value)
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at wLDD86nBDN66p8OLuv.baE1ODRUT9wK5LyFro.auiweE8eo(Object[] )
at qhVVpSa1N82NejlvRd.P62jRivsxWRI0WnMZM.oAdYPA2an(String , Variant )
at FastReport.Report.CalcExpression(String expression, Variant value)
at FastReport.Report.Calc(String expression, Variant value)
at FastReport.Report.Calc(String expression)
at FastReport.TextObject.GetData()
at FastReport.BandBase.GetData()
at FastReport.Engine.ReportEngine.eWrGPESv3(BandBase , Boolean )
at FastReport.Engine.ReportEngine.FZ8fGkD3E(BandBase , Boolean )
at FastReport.Engine.ReportEngine.lZUbb8GFi(BandBase , Boolean )
at FastReport.Engine.ReportEngine.n1g8aqA9Y(DataBand , Int32 )
at FastReport.Engine.ReportEngine.NGSVWoyOp(DataBand , Int32 , Boolean , Boolean )
at FastReport.Engine.ReportEngine.g36U8T47P(DataBand )
at FastReport.Engine.ReportEngine.Nk8wNkdda6(BandCollection )
at FastReport.Engine.ReportEngine.Ggcwjy3k9h(ReportPage )
at FastReport.Engine.ReportEngine.m6dwOf5ToM()
at FastReport.Engine.ReportEngine.MEEN0HAGa(ReportPage )
at FastReport.Engine.ReportEngine.fqgmcbVB0(Boolean , Boolean , ReportPage )
at FastReport.Engine.ReportEngine.M5Bop02gm(Boolean , Boolean )
at FastReport.Report.Prepare(Boolean append)
at FastReport.Report.Prepare()
at IFogIpS2LQqakFnNI32.j9TEgeSNKenlrM2o7Xw.jqgb8qWUO()
What can be problem? It is not relevant what kind of parameter I put and what data it containts.
Thanks,
Ivica
I have problem with data relations:
I made regular relation between 2 datasources and everything works ok until I put parameter into child datasource. After that I get this error:
FastReport.Net v1.3.41
Exception has been thrown by the target of an invocation.
Inner exception:
This row has been removed from a table and does not have any data. BeginEdit() will allow creation of new data in this row.
at System.Data.DataRow.GetDefaultRecord()
at System.Data.DataRow.get_Item(Int32 columnIndex)
at FastReport.Data.TableDataSource.GetValue(Column column)
at FastReport.Data.DataSourceBase.get_Item(Column column)
at FastReport.Data.Column.sOPadpeUk()
at FastReport.Report.lGrFHldUZ(String , Boolean )
at FastReport.Report.GetColumnValue(String complexName)
at FastReport.ReportScript.CalcExpression(String expression, Variant Value)
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at wLDD86nBDN66p8OLuv.baE1ODRUT9wK5LyFro.auiweE8eo(Object[] )
at qhVVpSa1N82NejlvRd.P62jRivsxWRI0WnMZM.oAdYPA2an(String , Variant )
at FastReport.Report.CalcExpression(String expression, Variant value)
at FastReport.Report.Calc(String expression, Variant value)
at FastReport.Report.Calc(String expression)
at FastReport.TextObject.GetData()
at FastReport.BandBase.GetData()
at FastReport.Engine.ReportEngine.eWrGPESv3(BandBase , Boolean )
at FastReport.Engine.ReportEngine.FZ8fGkD3E(BandBase , Boolean )
at FastReport.Engine.ReportEngine.lZUbb8GFi(BandBase , Boolean )
at FastReport.Engine.ReportEngine.n1g8aqA9Y(DataBand , Int32 )
at FastReport.Engine.ReportEngine.NGSVWoyOp(DataBand , Int32 , Boolean , Boolean )
at FastReport.Engine.ReportEngine.g36U8T47P(DataBand )
at FastReport.Engine.ReportEngine.Nk8wNkdda6(BandCollection )
at FastReport.Engine.ReportEngine.Ggcwjy3k9h(ReportPage )
at FastReport.Engine.ReportEngine.m6dwOf5ToM()
at FastReport.Engine.ReportEngine.MEEN0HAGa(ReportPage )
at FastReport.Engine.ReportEngine.fqgmcbVB0(Boolean , Boolean , ReportPage )
at FastReport.Engine.ReportEngine.M5Bop02gm(Boolean , Boolean )
at FastReport.Report.Prepare(Boolean append)
at FastReport.Report.Prepare()
at IFogIpS2LQqakFnNI32.j9TEgeSNKenlrM2o7Xw.jqgb8qWUO()
What can be problem? It is not relevant what kind of parameter I put and what data it containts.
Thanks,
Ivica
Comments
Could you make a simple project for me that demonstrates the problem? Please send it to tz@fast-report.com