Topic: JasperReport 急问!! |
Print this page |
1.JasperReport 急问!! | Copy to clipboard |
Posted by: tiexuexue Posted on: 2004-06-29 17:18 采用JRBeanCollectionDataSource填充报表,可是当构成JRBeanCollectionDataSource的collection为empty的时候,报表整个都不能显示,包括表头都不能显示出来了,我希望这个时候还能显示出表头,表尾,只是中间没有数据。请问如何做到这一点啊? |
2.Re:JasperReport 急问!! [Re: tiexuexue] | Copy to clipboard |
Posted by: panpa Posted on: 2004-07-01 16:38 看dtd里面的定义: <!ATTLIST jasperReport name NMTOKEN #REQUIRED columnCount NMTOKEN "1" printOrder (Vertical | Horizontal) "Vertical" pageWidth NMTOKEN "595" pageHeight NMTOKEN "842" orientation (Portrait | Landscape) "Portrait" whenNoDataType (NoPages | BlankPage | AllSectionsNoDetail) "NoPages" columnWidth NMTOKEN "555" columnSpacing NMTOKEN "0" leftMargin NMTOKEN "20" rightMargin NMTOKEN "20" topMargin NMTOKEN "30" bottomMargin NMTOKEN "30" isTitleNewPage (true | false) "false" isSummaryNewPage (true | false) "false" scriptletClass NMTOKEN #IMPLIED > 有个whenNoDataType属性,默认NoPages所以什么都不显示。 |
3.Re:JasperReport 急问!! [Re: tiexuexue] | Copy to clipboard |
Posted by: lijue1389 Posted on: 2004-07-29 17:26 需要在所生成的XML文件中设置以下: whenNoDataType (NoPages | BlankPage | AllSectionsNoDetail) "NoPages" 改为: whenNoDataType (NoPages | BlankPage | AllSectionsNoDetail) "AllSectionsNoDetail" |
4.Re:JasperReport 急问!! [Re: tiexuexue] | Copy to clipboard |
Posted by: kam Posted on: 2004-07-29 21:58 在ireport裏的report properties 可以選擇 ^.^ |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |