如何为ssrs报告创建复选框列表txt而不是项目列表txt?

时间:2019-05-17 15:44:21

标签: html reporting-services ssrs-2012

我正在处理SSRS报告,在该报告中,我试图将逗号分隔的字符串显示为“其他”选项以显示为项目符号列表,但现在我需要将项目符号替换为复选框。可以帮忙吗?

我尝试了html编码,然后更改了可见性以显示html格式的txt。

    Public Shared Function SetBullet(ByVal Value As String, ByVal Delimiter As String) As String
    Dim ListArray() As String
    ListArray = Split(Value, Delimiter)
    Dim LastNonEmpty As Integer = -1
    For i As Integer = 0 To ListArray.Length - 1
    If ListArray(i) <> "" Then
    LastNonEmpty += 1
    ListArray(LastNonEmpty) = ListArray(i)
    End If
    Next
    ReDim Preserve ListArray(LastNonEmpty)
    Dim RetValue As String = ""
    Dim x As String = ""
    RetValue = "<ul>"
    For Each x In ListArray
    RetValue = RetValue + "<li>" + x + "</li>"
    Next
    RetValue = RetValue + "</ul>"
    Return RetValue
    End Function


My expression for SSRS txt box : 
=code.SetBullet(Fields!elw_OtherDietTypes.Value,";")

我需要将项目符号替换为复选框

0 个答案:

没有答案