html - How to render the formated text in the report.rdlc (with its format) -
i store data in formatted way in db , want way render text format in report.rdlc use visual studio 2008 how :
for example :
if text :
<p>text</p> it appears same tags in report text box !!. instead of rendering paragraph.
when bind :
= fields.subject how fix problem ?

edit
after researching problem bit more appears visual studio doesn't support markup html rdlc reports until visual studio 2010. if upgrading option, can want.
otherwise strip out html tags so:
on report menu, click report properties... , select code tab. enter following code:
function striphtmltags(byval text string) string return system.text.regularexpressions.regex.replace(text, "<(.|\n)*?>", "") end function now in cell use following expression:
=code.striphtmltags(fields!myfield.value) original answer follows:
leaving aside should separate data presentation, can render using html tags in reporting services, not intuitive find:
- left click field want display
<expr>tag highlighted - right click highlighted
<expr>tag , chooseplaceholder properties... - on
generaltab, selecthtml- interpret html tags styleradio button
only limited number of tags supported however. this article on msdn tells more.
screenshots:


Comments
Post a Comment