Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/reporting-services/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vb.net 我可以使用在SSRS报告代码中返回字符串列表作为tablix中的标题的方法吗?_Vb.net_Reporting Services_Ssrs Tablix - Fatal编程技术网

Vb.net 我可以使用在SSRS报告代码中返回字符串列表作为tablix中的标题的方法吗?

Vb.net 我可以使用在SSRS报告代码中返回字符串列表作为tablix中的标题的方法吗?,vb.net,reporting-services,ssrs-tablix,Vb.net,Reporting Services,Ssrs Tablix,我有一个表格,每天每半小时需要包含50列(+2列为夏令时)。所以每列都是HH1,HH2,HH3。。。HH50 我已经在报告属性代码部分编写了这段代码 Function GetHH() As List(Of String) Dim headers As List(Of String) = new List(Of String) For index As Integer = 1 to 50 headers.Add("HH" & index) Ne

我有一个表格,每天每半小时需要包含50列(+2列为夏令时)。所以每列都是HH1,HH2,HH3。。。HH50

我已经在报告属性代码部分编写了这段代码

Function GetHH() As List(Of String)
    Dim headers As List(Of String) = new List(Of String)
    For index As Integer = 1 to 50
        headers.Add("HH" & index)   
    Next    
    return headers
End Function

有没有办法将此函数的输出用作我的tablix的标题?或者我需要将标题添加到数据库中的某类数据集中,并从中添加?

列组功能非常适合于此。正如您所提到的,您需要编写一条SQL语句来在数据集中返回这些值。然后可以将列组设置为按这些值分组。这样,您的表总是获得正确的列数,而不必手动添加它们