简体   繁体   English

SSRS数据何时不显示页眉和页脚

[英]SSRS Data Not showing when header and footer are

Quick question about SSRS 关于SSRS的快速问题

I am attempting to modify a report in SSRS using Report Builder 3 in SQL Server 2008. 我正在尝试使用SQL Server 2008中的报表生成器3修改SSRS中的报表。

The report is reading from a stored procedure and is meant to show a table of the results of that stored procedure. 该报告正在从存储过程中读取,旨在显示该存储过程的结果表。

I have verified that the stored procedure works, but my problem is that for some reason the header and footer of the report are showing but not the table itself. 我已经验证了存储过程可以工作,但是我的问题是由于某种原因,报表的页眉和页脚正在显示,但表本身却没有显示。

Even if no results are returned I would still expect to see the table without any rows. 即使没有返回结果,我仍然希望看到该表没有任何行。

Has anyone seen this error before? 有没有人看过这个错误?

Thanks in advance 提前致谢

Does your table have header or footer rows? 您的表中是否有页眉或页脚行? If there is no data, those will be the only visible components. 如果没有数据,则这些将是唯一可见的组件。 Also, check the Hidden property of the table. 另外,检查表的“隐藏”属性。 Perhaps the author of the report wrote an expression there that hides the table if it is empty. 也许报告的作者在其中写了一个表达式,如果表为空,则将其隐藏。

If a table is attached to a Dataset that returns zero rows, SSRS will display the contents of the NoRowsMessage property of the table, if anything has been entered, otherwise it will only display the header and footer rows of the table. 如果将表附加到返回零行的数据集,则SSRS将显示表的NoRowsMessage属性的内容(如果已输入任何内容),否则将仅显示表的页眉和页脚行。

This means that if your table doesn't have header and/or footer rows AND your dataset returns zero rows AND there is nothing set for the NoRowsMessage property then nothing would be displayed on the report for that table. 这意味着,如果表没有页眉和/或页脚行,并且数据集返回零行,并且NoRowsMessage属性没有设置,那么该表的报告将不会显示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM