2006 IR Open Discussion Posted August 18, 2006 Share Posted August 18, 2006 By: Dan Peery - sfpeery Unable to supress summary band. 2002-12-23 16:20 Unable to supress summary band. I have a main report that prints 1 page in the title band and a second page that may or may not print in the summary band. The content of the second page is being suppressed correclty, but an unwanted blank page is still being printed. What else can be done? See xml code below. <summary> <band height="700"> <subreport isUsingCache="true"> <reportElement mode="Transparent" x="8" y="7" width="489" height="685" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="false" isRemoveLineWhenBlank="true" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"> <printWhenExpression> (((com.wcom.obd.nc.reports.virs.VIRSHandler)$P{REPORT_SCRIPTLET}).isShowFailureReport()) </printWhenExpression> </reportElement> <parametersMapExpression> new HashMap($P{REPORT_PARAMETERS_MAP}) </parametersMapExpression> <dataSourceExpression> $P{report_data_source_FailurePage2Report} </dataSourceExpression> <subreportExpression class="java.lang.String"> "reports/FailurePage2Report.jasper" </subreportExpression> </subreport> </band> </summary> By: Teodor Danciu - teodord RE: Unable to supress summary band. 2002-12-23 23:15 Hi, Do you use isSummaryNewPage="true" in your master document? Thank you, Teodor By: Keith Berman - bobbassen RE: Unable to supress summary band. 2003-05-27 15:14 I am having a similar situation Teodor. I have a summary section that will only print when there is no data. It just so happens I have a report where there is data that fills exactly 2 pages but I am getting 3 pages - I think it is because the report is creating space for my summary. Is there a way to ignore the summary in this case. Here is my summary code: <summary> <band height="39"> <textField> <reportElement isPrintRepeatedValues="true" mode="Transparent" x="200" y="26" width="400" height="13"> <printWhenExpression>new Boolean($P{Empty} == "true")</printWhenExpression> </reportElement> <textElement textAlignment="Center"> <font reportFont="Arial_Title" /> </textElement> <textFieldExpression class="java.lang.String">"NO DATA COULD BE FOUND TO SATISFY THE REQUEST"</textFieldExpression> </textField> </band> </summary> Thanks again!! By: Teodor Danciu - teodord RE: Unable to supress summary band. 2003-05-28 00:10 Hi, Use the <printWhenExpression> available at <band> level. This way you wont be getting an empty 39 pixels tall summary band creating a new last blank page for nothing. Thank you, Teodor By: Keith Berman - bobbassen RE: Unable to supress summary band. 2003-05-28 07:02 Thanks as always, I missed that one! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now