tips & tricks


Calendario
febbraio 2025
lmmgvsd
272829303112
3456789
10111213141516
17181920212223
242526272812
3456789

HTML in un campo di testo


HTML in un campo di testo


Per visualizzare in un report un campo in cui vi è del codice HTML come fosse testo formattato si può aggiungere questa funzione nel codice al Tab Code del Report:


Public function FormatHtml(byval s as string)

return new System.Text.RegularExpressions.Regex("<[^>]*>").Replace(s, "")

End Function


e la possiamo richiamare così:


= Code.FormatHtml(Fields!Description.Value)


Categoria: Reporting
martedì, 29 mar 2011 Ore. 18.08
Archivio Posts
Anno 2020

Anno 2018

Anno 2015

Anno 2013

Anno 2011

Anno 2010

Anno 2009

Anno 2008
Statistiche
  • Views Home Page: 15.301
  • Views Posts: 58.627
  • Views Gallerie: 2.837
  • n° Posts: 117
  • n° Commenti: 1
Copyright © 2002-2007 - Blogs 2.0
dotNetHell.it | Home Page Blogs
ASP.NET 2.0 Windows 2003