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

Curly Braces Causing Errors

3 Answers 335 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Donald McLean
Top achievements
Rank 2
Donald McLean asked on 11 Mar 2011, 03:58 PM
I have a asp.net 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.

3 Answers, 1 is accepted

Sort by
0
Stephan
Telerik team
answered on 16 Mar 2011, 06:10 PM
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,
Stephan
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!
0
Виталий
Top achievements
Rank 1
answered on 23 Oct 2018, 10:19 AM
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 = 9.1.15.624
1
Silviya
Telerik team
answered on 26 Oct 2018, 05:43 AM
Hi Виталий,

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

Regards,
Silviya
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
Tags
General Discussions
Asked by
Donald McLean
Top achievements
Rank 2
Answers by
Stephan
Telerik team
Виталий
Top achievements
Rank 1
Silviya
Telerik team
Share this question
or