Skip to content

Instantly share code, notes, and snippets.

@tahaipek
Created October 31, 2017 12:39
Show Gist options
  • Save tahaipek/9776d53e53b33cfc10f41b77f6c58a84 to your computer and use it in GitHub Desktop.
Save tahaipek/9776d53e53b33cfc10f41b77f6c58a84 to your computer and use it in GitHub Desktop.
SSRS Encode HTML string
###ReportProperties
#Add reference to Report Properties => System.Net
###Set Custom code for this report.
Public Function URLEncode (ByVal data As String) As String
Dim outURL As String
outURL = System.Net.WebUtility.HtmlDecode(data).ToString
Return outURL
End Function
###Set expresion for: field calue
=Code.URLEncode(First(Fields!TestField.Value, "DataSet1"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment