This is a migrated thread and some comments may be shown as answers.

Exception when using Abs() in expression with Single parameter

2 Answers 80 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ralf
Top achievements
Rank 1
Ralf asked on 02 Oct 2014, 02:08 PM
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 Answers, 1 is accepted

Sort by
0
Ralf
Top achievements
Rank 1
answered on 07 Oct 2014, 06:46 AM
Reported Ticket for this scenario. Seems to be a bug (Real in SQL => Single/float in C#) should be supported.
0
Nasko
Telerik team
answered on 07 Oct 2014, 09:00 AM
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.

 
Tags
General Discussions
Asked by
Ralf
Top achievements
Rank 1
Answers by
Ralf
Top achievements
Rank 1
Nasko
Telerik team
Share this question
or