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

Superscript in Expression

1 Answer 170 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 1
Frank asked on 01 Jul 2016, 01:48 PM

I have a table on a report and I need to be able to have a 1 as a superscript in the textbox.  I have tried a number of methods. I know I can use an htmTextbox and superscript works but the is when an expression is not used.

=IIF(Parameters.InceptionMonths > 11, Format("{0:P2}",Fields.InceptionReturn) + " " + &#185 Format("{0:P2}",Fields.InceptionReturn))

I get the error that it is a missing operand before "&" operator.  when I use <sup> I get the same basic error.  I cannot use chr(185).

1 Answer, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 05 Jul 2016, 12:29 PM
Hello Frank,

Test using HtmlDecode() built-in function that takes an HTML-encoded string and returns a decoded string, for example:
= HtmlDecode("&#185;")
More information regarding built-in functions can be found in this help article.

You can also use HtmlTextBox item with embedded expressions - check HtmlTextBox(Embedded expressions) help article.


Regards,
Katia
Telerik by Progress
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
Frank
Top achievements
Rank 1
Answers by
Katia
Telerik team
Share this question
or