|
30.03.2012, 14:10
#37731403
Ссылка:
Ссылка на сообщение:
Ссылка с названием темы:
Ссылка на профиль пользователя:
|
|
|
Участник
Сообщения: 680
Рейтинг:
0
/ 0
|
|
|
|
Привет всем.
Пытаюсь использовать в следующее условие:
ЕСЛИ значение колонки rownum вьюшки vCR_PrintApplCondition11 равно 1
ИЛИ длина значения колонки rownumtxt вьюшки vCR_PrintApplCondition11 равно 0,
ТО выводить 1
ИНАЧЕ выводить 0
мой код:
[IIf((([vCR_PrintApplCondition11.rownum]==1) || (Length([vCR_PrintApplCondition11.rownumtxt])==0)),1,0)]
при выполнении ругается:
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34.
FastReport.Net v1.6.2
Exception has been thrown by the target of an invocation.
Inner exception:
Specified cast is not valid.
at FastReport.ReportScript.CalcExpression(String expression, Variant Value)
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& 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 GSkvfgBWtBwx0T4QTR.w7tccr05ZaBUGXjK3s.xU0iiKMQ6(Object[] )
at gibDpbyD7OjdcTLWK3.J1qgGEL6kiOlis4hdF.C72Nv9G1C(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.TextObjectBase.vHw0PqpiD(String , Int32 )
at FastReport.TextObject.GetData()
at FastReport.Table.TableCell.GetData()
at FastReport.Table.TableObject.GetData()
at FastReport.BandBase.GetData()
at FastReport.Engine.ReportEngine.f8J4ZvJf7(BandBase , Boolean )
at FastReport.Engine.ReportEngine.R7CastYQw(BandBase , Boolean )
at FastReport.Engine.ReportEngine.aCDY8pf7G(BandBase , Boolean )
at FastReport.Engine.ReportEngine.jSRcSMBQm(DataBand , Int32 )
at FastReport.Engine.ReportEngine.JNhmH54eq(DataBand , Int32 , Boolean , Boolean )
at FastReport.Engine.ReportEngine.j3nlLvObi(DataBand )
at FastReport.Engine.ReportEngine.Hfei8HoxeX(BandCollection )
at FastReport.Engine.ReportEngine.JNhmH54eq(DataBand , Int32 , Boolean , Boolean )
at FastReport.Engine.ReportEngine.j3nlLvObi(DataBand )
at FastReport.Engine.ReportEngine.Hfei8HoxeX(BandCollection )
at FastReport.Engine.ReportEngine.6yai96oUH2(ReportPage )
at FastReport.Engine.ReportEngine.QuGiwINjrM()
at FastReport.Engine.ReportEngine.VqtwLxbki(ReportPage )
at FastReport.Engine.ReportEngine.TB7pRclEm(Boolean , Boolean , ReportPage )
at FastReport.Report.Prepare(Boolean append)
at ehSirINC4lAmo8OMcwk.9AiPtdNqahboccnA6JV.wGD1wK7dC()
Что не так?
|
|
|