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

Reports display markup tags in report and export files.

1 Answer 93 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Adrian Robert
Top achievements
Rank 1
Adrian Robert asked on 17 Mar 2016, 10:02 PM

Hello everyone,

I'm new to Telerik Reports and I'm experiencing some problems with some html tags.

I'm using Kendo UI MVC controls to insert text into my database.

My problems start when I generate the telerik reports as well as exporting them to pdf or excel.

1) First problem, apparently the html tags are not render properly and I get markup tags into the report.

2) Second problem, If I have a "newline" using bold or underline I get an error in the report and exported file.

I've attached a small print screen from the exported pdf. 

 

Thank you.

Adrian

 

1 Answer, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 22 Mar 2016, 12:07 PM
Hi Adrian,

For other community members interested in this topic we publish below the reply from the ticket that you opened on the same question:

1. Please make sure that you place Html-formatted text into HtmlTextBox item. Otherwise, the markup will not be rendered.
Also, please note that  <br> tag is an empty tag which means that it has no end tag. Thus, to insert a line break you should use <br> markup.

2. The error on the screenshot indicates that there is a mismatch between  and closing tags in your markup. Please check if the tags are valid (you can use Html validator for this purpose).

Please see attached a sample report demonstrating the usage of <br> tag.

We would also recommend reviewing the limitations of HtmlTextBox item described in HtmlTextBox/Known Limitations, Supported HTML tags and Supported CSS attributes.


In case, you need additional clarifications let us continue the discussion in one of the threads to keep a better track of the exchanged information.

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