CHR() in report expression give error

4 posts, 0 answers
  1. Carla
    Carla avatar
    3 posts
    Member since:
    Dec 2010

    Posted 14 Feb 2012 Link to this post

    i am trying to do a conditional statement in a report that results in a

    chr(0252) or a

    chr(0251) as the result.  a "x" or a checkmark in wingding font.  using telerik latest reporting and VS 2010.  this works in ssrs vs 2008 but not in telerik.  it does not recognizt the CHR()

    An error has occurred while processing TextBox 'textBox87':

    The expression contains undefined function call chr().

     
    how do yuo do this in telerik reporting?  need this asap

     

     

     

     

  2. Steve
    Admin
    Steve avatar
    10942 posts
    Member since:
    May 2014

    Posted 14 Feb 2012 Link to this post

    Hi Carla,

    There is no built-in function to handle the wingding character and display it. However you can manually do this by opening the expression editor, holding Alt and keying the desired number e.g. Alt + 0251.

    Greetings,
    Steve
    the Telerik team

    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

  3. Carla
    Carla avatar
    3 posts
    Member since:
    Dec 2010

    Posted 22 Feb 2012 Link to this post

    holding alt and keying the number does nothing.  this does not solve my issue.  i have a conditional statement that either has to display the checkmark or the "x"

  4. Elian
    Admin
    Elian avatar
    435 posts
    Member since:
    Sep 2012

    Posted 27 Feb 2012 Link to this post

    Hi Carla,

    What my colleague meant, was to type in the characters in the expression directly, instead of using a function that will create them by their code. Something like:

    =IIF(Fields.Item % 2 = 1,  '✔', '✘')
    See screenshot for result.

    Kind regards,
    Elian
    the Telerik team
    NEW in Q1'12: Telerik Report Designer (Beta) for ad-hoc report creation. Download as part of Telerik Reporting Q1 2012. For questions and feedback, use the new Telerik Report Designer Forum.

Back to Top