tips & tricks


Calendario
luglio 2024
lmmgvsd
24252627282930
1234567
891011121314
15161718192021
22232425262728
2930311234

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: 14.008
  • Views Posts: 56.824
  • 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