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

Converting Ampersand

4 Answers 232 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Simon Parr
Top achievements
Rank 1
Simon Parr asked on 22 Jan 2009, 09:42 AM
Hi

I am currently trying to convert the code for an ampersand (&) into the actual sign.  The database that I am retrieving the value from stores it as its code but when displayed in my report, it doesn't convert it.  Does anyone know if it is possible to convert it when displaying the report?

Thanks

Simon

4 Answers, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 22 Jan 2009, 10:21 AM
Hi Simon,

This should be working properly in HTML Preview and when shown through the Web ReportViewer where the browser that displays the report, handles the HTML itself. Unfortunately the rest of the supported formats - Image (GDI), PDF, XLS, RTF do not support HTML out of the box, and we are currently working on a rich textbox item that would handle basic html markup in all export formats. It would be part of the Q1 2009 release scheduled for the end of February.

Sorry for the inconvenience and thank you for the understanding.

Sincerely yours,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Simon Parr
Top achievements
Rank 1
answered on 22 Jan 2009, 10:52 AM
Thanks Steve.

Is there no way then of intercepting the data before it is displayed to check to see if the ampersand sign is present?

Simon
0
Accepted
Steve
Telerik team
answered on 22 Jan 2009, 11:15 AM
Hi Simon,

You can use the ItemDataBound event to see what data comes in and make necessary changes according to your scenario.

Greetings,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Simon Parr
Top achievements
Rank 1
answered on 22 Jan 2009, 11:23 AM
Thanks very much - that's a great help!
Tags
General Discussions
Asked by
Simon Parr
Top achievements
Rank 1
Answers by
Steve
Telerik team
Simon Parr
Top achievements
Rank 1
Share this question
or