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
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
0 Answers:
No answers yet