Curly Braces Causing Errors

4 posts, 0 answers
  1. Donald McLean
    Donald McLean avatar
    29 posts
    Member since:
    May 2010

    Posted 11 Mar 2011 Link to this post

    I have a application which uses telerik reports to display data from a database. In one of the fields there have been curly braces {} used. This works fine in the application, however when the report attempts to use this data in a textbox I get "An error has occurred while processing Report 'TestReport': Error evaluating embedded expressions: Unexpected token inside an expression at index 12" does any one have idea on how to fix this short of replacing the curly braces when displaying in the report with regular brackets. I tried using an HTMLTextbox to see if it would handle it any better and it did not. Any help with this would be greatly appreciated.

  2. Stephan
    Stephan avatar
    12 posts

    Posted 16 Mar 2011 Link to this post

    Hello Donald McLean,

    When in TextBox/HtmlTextBox the reporting engine interprets the curly braces {} as embedded expression delimiter - that is the content inside is evaluated as Telerik Reporting expression. If you don't need embedded expressions you should escape the curly braces - {{ }}. For more information about Telerik Reporting's expressions please see Using Expressions.

    If this is not your case, please open an official support ticket and send us a sample report that illustrates the issue.

    All the best,
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. Виталий
    Виталий avatar
    1 posts
    Member since:
    May 2018

    Posted 23 Oct 2018 Link to this post

    Hello. Faced the same problem.
    The report uses a lot of HTMLTextBox and TextBox.
    It would be nice if the entered characters "{" and "}" were displayed without problems in the report. Processing characters "{" and "}" very expensive and it will interfere with the further scalability of the report. It is possible as that to get around this?
    Did the decision appear after so many years?
    Asp. Net web forms
    Telerik Reporting Version =
  4. Silviya
    Silviya avatar
    417 posts

    Posted 26 Oct 2018 Link to this post

    Hi Виталий,

    As curly brackets are used by the engine to identify embedded expressions they should be escaped with double brackets: {{ or }}.

    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top