Exception when using Abs() in expression with Single parameter

3 posts, 0 answers
  1. Ralf
    Ralf avatar
    12 posts
    Member since:
    Jan 2014

    Posted 02 Oct 2014 Link to this post

    Using Telerik.Reporting, Version=8.1.14.804.
    Visual Studio solution in C# with report designer.
    Data from database returns column 'Field1' of SQL type REAL.
    Textbox on report with expression : 
    = Abs(Fields.Field1)

    In preview a red exception box is shown with message : 'Specified cast is not valid.'

    As a workaround we now have:

    = Abs(CDbl(Fields.Field1))

    Should it work with a real (Single in C#?) from the database? Or are we doing something wrong?


  2. Ralf
    Ralf avatar
    12 posts
    Member since:
    Jan 2014

    Posted 07 Oct 2014 Link to this post

    Reported Ticket for this scenario. Seems to be a bug (Real in SQL => Single/float in C#) should be supported.
  3. Nasko
    Admin
    Nasko avatar
    1049 posts

    Posted 07 Oct 2014 Link to this post

    Hello Ralf,

    Thank you for reporting this issue. It is now logged in our system for improvement and will be addressed in a future version of the Reporting product. As a token of gratitude for reporting this bug you will find your Telerik points updated.

    Regards,
    Nasko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top