POST POST

AUG
2
2015

Casting in Telerik Reports

ORIGINALLY POSTED TO: http://blog.simontimms.com/2015/07/30/casting-in-telerik-reports/

Short post as I couldn't find this documented anywhere. But if you need to cast a value inside the expression editor inside a Telerik Report then you can use the conversion functions

  • CBool
  • CDate
  • CDbl
  • CInt
  • CStr

I used it to cast the denominator here to get a percentage complete:

I also used the Format function to format it as a percentage. I believe the Format string here is passed directly into .net's string format function so anything that works there will work here.


Simon Timms

Email Email
Web Web
Twitter Twitter
GitHub GitHub
RSS

Looking for someone else?

You can find the rest of the Western Devs Crew here.

© 2015 Western Devs. All Rights Reserved. Design by Karen Chudobiak, Graphic Designer