1

我正在寻找使用报表生成器构建 SSRS 2008 R2 报表,这样如果单击报表行中的单元格,它会导致迄今为止隐藏的子报表变得可见,并填充从使用参数的查询中检索到的数据单击的单元格行中的值。

为了进一步解释,在单击之前报告应该如下所示:

|  Column 1  |  Column 2  |  Column 3  |  Column 4  |
|Row 1 Col 1 |Row 1 Col 2 |Row 1 Col 3 |Row 1 Col 4 |
|Row 2 Col 1 |Row 2 Col 2 |Row 2 Col 3 |Row 2 Col 4 |
|Row 3 Col 1 |Row 3 Col 2 |Row 3 Col 3 |Row 3 Col 4 |
|Row 4 Col 1 |Row 4 Col 2 |Row 4 Col 3 |Row 4 Col 4 |

然后点击 后,应该会出现数据 from toRow 1 Col 1的子报表,如下所示:Row A Col ARow D Col D

|  Column 1  |  Column 2  |  Column 3  |  Column 4  |
|Row 1 Col 1 |Row 1 Col 2 |Row 1 Col 3 |Row 1 Col 4 |
    |  Column A  |  Column B  |  Column C  |  Column D  |
    |Row A Col A |Row A Col B |Row A Col C |Row A Col D |
    |Row B Col A |Row B Col B |Row B Col C |Row B Col D |
    |Row C Col A |Row C Col B |Row C Col C |Row C Col D |
    |Row D Col A |Row D Col B |Row D Col C |Row D Col D |
|Row 2 Col 1 |Row 2 Col 2 |Row 2 Col 3 |Row 2 Col 4 |
|Row 3 Col 1 |Row 3 Col 2 |Row 3 Col 3 |Row 3 Col 4 |
|Row 4 Col 1 |Row 4 Col 2 |Row 4 Col 3 |Row 4 Col 4 |

子报表中的数据将根据 中的值从查询中填充Row 1

谁能指出我在哪里可以找到如何做到这一点,或者建议我如何做到这一点?在SSRS中甚至可能吗?

4

1 回答 1

1

CodeProject 示例展示了如何设置子报表。我认为您想要的示例是下报告。

于 2012-10-22T09:25:26.303 回答