iReport点击Preview预览时The document has no page问题解决
做个HolleWord,点击Preview预览时却提示这个,很是懊恼。
因为iReport默认的查不到数据的情况下,就会提示这个,只需要我们修改下页面属性即可。在页面空白处右键--属性
找到 When No Data 属性,选择"All Sections,No Details"(打印所有的段落,除了Details之外)
再次点击 Preview 就可以预览了。
补充:
When No Data属性介绍:
1.No Pages(不打印数据,因为返回数据的缓存为空,这是默认值);
2.Blank Page(返回一个空白的页面);
3."All Sections,No Details"(打印除了Details之外的所有的段落);
4.No Data section(把No Data的Band打印出来)