2002 JI Open Discussion Posted August 17, 2006 Share Posted August 17, 2006 By: Muralidhar bp - pmurli Page footer for noxmldesign example 2003-02-07 07:18 Hello, I am developing using noxmldesign example. Please tell me how to continue with this code.... Please make necessary correction for the same band = new JRDesignBand(); band.setHeight(50); textField = new JRDesignTextField(); textField.setX(200); textField.setY(15); textField.setWidth(80); textField.setHeight(30); textField.setTextAlignment(JRTextElement.TEXT_ALIGN_RIGHT); expression = new JRDesignExpression(); expression.setValueClass(java.lang.String.class); expression.setText("page " + " String.valueOf("$V{PAGE_NUMBER})"); textField.setExpression(expression); band.addElement(textField); textField = new JRDesignTextField(); textField.setEvaluationTime(evaluationTime); textField.setX(284); textField.setY(15); textField.setWidth(75); textField.setHeight(30); textField.setTextAlignment(JRTextElement.TEXT_ALIGN_LEFT); expression = new JRDesignExpression(); expression.setValueClass(java.lang.String.class); expression.setText("page " + "$V{PAGE_NUMBER}"); textField.setExpression(expression); band.addElement(textField); jasperDesign.setPageFooter(band); //Summary band = new JRDesignBand(); jasperDesign.setSummary(band); The same code which i have written in xml is *************** <pageFooter> <band height="50"> <textField> <reportElement x="200" y="15" width="80" height="30"/> <textElement textAlignment="Right"/> <textFieldExpression class="java.lang.String"> "page " + String.valueOf($V{PAGE_NUMBER}) + " of " </textFieldExpression> </textField> <textField evaluationTime="Report"> <reportElement x="284" y="15" width="75" height="30"/> <textElement textAlignment="Left"/> <textFieldExpression class="java.lang.String"> " " + String.valueOf($V{PAGE_NUMBER}) </textFieldExpression> </textField> </band> </pageFooter> Please help me. Thanx in advance Thanx Murli 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