HtmlTextBox Error

1 Answer 16 Views
HTMLTextBox
Chrystal
Top achievements
Rank 1
Chrystal asked on 07 Jan 2025, 04:17 PM | edited on 07 Jan 2025, 04:21 PM

I am using Visual Studio 2022 and the standalone Report Designer.  I am receiving the following error on a TRDP file:

An error has occurred while processing HtmlTextBox 'htmlTextBox1'
An error occurred while parsing EntityName. Line 1, position 21.


The formula for htmlTextBox1 is     = Format("Old: {0}<br />New: {1}", Fields.oldValue, Fields.newValue)

This formula has been working for months and still works for most data but we periodically have this happen.  I suspect that the error is happening with data for Fields.oldValue.   Is it possible that a null value could cause this?  What are my options?

Thank you,

1 Answer, 1 is accepted

Sort by
1
Accepted
Ivet
Telerik team
answered on 10 Jan 2025, 02:23 PM

Hello Chrystal,

Thank you for reaching out.

For the error you have, I suggest looking at this Parsing the HtmlTextBox value leads to an EntityName error - Telerik Reporting article.

I think you are on the right way. Try to use this StripHtmlTags(string) function from this Text Functions at a Glance - Telerik Reporting article in the following way:

= Format("Old: {0}<br />New: {1}", StripHtmlTags(Fields.oldValue), StripHtmlTags(Fields.newValue)

If the issue is still not fixed could you tell me did you upgraded the Designer if yes from which to which version?

I would appreciate it if you keep us updated on your progress.

Regards,
Ivet
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.
Tags
HTMLTextBox
Asked by
Chrystal
Top achievements
Rank 1
Answers by
Ivet
Telerik team
Share this question
or