You don't say what type of field JOB_ID is, but one easy solution, if you can
a) make it that field some type of number
b) split it out into its own _expression_
would be to use a pattern on it of: #000000
That will left pad it with zeros to fill 6 spaces. Split that field out from the _expression_ and put the two fields next to each other to accomplish the same thing.
A more complicated solution would be to use a scriplet.
Oh, and one other solution would be to left pad it in your sql.
Brian N. Burridge
How to Call Oracle Stored Procedures from Jasper Reports
Review of JasperReports and OpenReport
On 6/13/06, John Dunn <[EMAIL PROTECTED]> wrote:
I still need help with this. Can anyone help?
In the following _expression_ I want to left pad $F{JOB_ID} with zeros to 6
characters
$F{JOB_ID} + $F{FILE_NUMBER} + "." + $F{REPRINT_COUNT}
Is there an easy way to do that in a _expression_?
John Dunn
Product Consultant
Direct Dial +44 (0) 117 373 6122
Sefas Innovation Ltd, CityPoint, Temple Gate, Bristol BS1 6PL, UK.
Tel: +44(0) 117 373 6114
Fax: +44 (0) 117 373 6115
www.sefas.com
_______________________________________________
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions
_______________________________________________ jasperreports-questions mailing list jasperreports-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jasperreports-questions