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 ?


enter image description here

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:

  1. left click field want display <expr> tag highlighted
  2. right click highlighted <expr> tag , choose placeholder properties...
  3. on general tab, select html- interpret html tags style radio button

only limited number of tags supported however. this article on msdn tells more.

screenshots:

enter image description here

enter image description here


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -