空数据源状态下如何避免报表中出现空格和空白部分
问:
我想问一下报表设计的问题。
如果我的报表数据源是数据集中的一组数据表。在某些情况下,数据表
是空的,如何隐藏表(我的意思是使用这个空数据表作为数据源的控件)以防止报表中出现空格和空数据? 。是否有一些像面板这样的控件可以使其在(特定表的源为空)情况下不可见?
请解释一下,因为我是报告的初学者。我对设计和格式问题感到困惑。如果有资源在这方面帮助我,我将不胜感激。
例如:
如果使用数据表作为数据源,如何隐藏标题和表格下表是空的,报告各部分之间没有留空格。
提前致谢。
Q:
I wanna to ask about report design issue.
If my report data source is set of data tables in a data set. And in some cases the data table
is empty, How to hide the table(I mean the control which use this empty datatable as a data source) to prevent spaces and empty data in my report ?. Is there some control like panel to make it invisible under the condition of( the source of specific table is empty)?
Please explanation,because I'm a beginner for the reports.and I'm confused about the design ,and formatting issues.I will be grateful if there are resources to help me in this area.
For Example:
How to hide both of the title and the table if the data table used as a data source to the table below is empty without leaving spaces between sections of my report.
thanks in advance.
要隐藏标题,您有两种选择:
使用列表来包含表格和标题文本框。如果 CountRows 等于 0,则隐藏列表(其中包含其他两个)
在表列标题顶部添加一行。将标题放在那里。
To hide the title you have two options:
Use a list to contain both the table and the title textbox. If CountRows equals 0 hide the list (which contains the other two)
Add a row on top of the table column headers. Place the title there.