Hello everyone, We plan to use ireport to generate invoices that will be folded after having been printed. We need to add a datamatrix barcode on each sheet. The barcode would be something like XXYYZ where : XX stands for Page XX of current invoice that has YY pages. For exemple, the barcode printed on the second sheet of a 3 pages/sheets invoice, not duplex printed, would be 0203 with XX=02 and YY=03 Z code is a verification loop, that would stard at 0 and ends at 9, starting over and over. This Z code is there to ensure that the sequence has not been broken. --- For XX and YY, i think I have to create two variables using native variable but I can't see where I can specify the generation time (Now for XX and ?? for YY) For Z, I think I need to create another variable with a loop. In both case I am near to 0 in java but plan of course to get (well at least try) some skills ! Problem is I need to be able to produce these barcodes ASAP so we can test a new folder... Anyway, thanks for your time and hopefully your feedback.