How do you print on the bank's pre-printed form so each field lands in its box?
· Toni Martir, arquitecto de software
At the end of the month, the business software prints the promissory notes (pagarés, the Spanish payment instrument) for the suppliers on sheets that already carry the form: the top is left for the invoice or a letter, and the note sits at the bottom right, separated from it by a perforated line. The template, the report that fills in the sheet, has to put each field in its box.
You get there with the scanned form as the background, at its real size and never printed, and with each field measured from the edge of the sheet.
The background, at its real size
A scan is pixels, and its size on paper depends on the resolution, in dots per inch (dpi). An A4 sheet scanned at 150 dpi gives 1,240 × 1,754 pixels, which is 210 × 297 millimetres only if the template also uses 150 dpi. At 200, the background shrinks to three quarters, and the sample's amount, placed on its box, prints six centimetres too high.
So you scan at 100% and give the template the same resolution. And its margins go to zero, because the scan starts at the edge of the paper, which every position is measured from.
What the banks' standard sets out
In 2001, Spain's financial institutions agreed a common standard for promissory notes, booklet 56 from their associations, AEB, CECA and UNACC. The note measures 175 × 80 millimetres, give or take two, and its lines are spaced in sixths of an inch, 4.23 millimetres. Attached to an invoice wider than itself, it goes at the bottom right, separated by a perforation. The booklet's model says what goes where:
The standard promissory note: where the template writes
From the model in booklet 56, July 2001. CMC-7 characters are the ones the banks' machines read.
The background stays off the paper, and you test on paper
The scan is a guide and it isn't printed, or the sheet would carry the form twice. It shows while you design, and in the preview if you like.

Only the data goes onto the paper: the sheet already carries the form.
You test with the first note on plain paper, laid over a blank form and held up to the light. If every field is off by the same amount, you move the whole page, not field by field, as I explained in the article on labels that don't line up. And if the sheet comes from a PDF, you print it at actual size.
So how do you print on it?
With the scanned form as the background, at the resolution of the scan and never printed; with each field measured from the edge of the sheet, on its box and clear of the magnetic band; and testing first on plain paper.
In Report Manager, a section's background image has its own resolution in dpi and a style: designer only, preview as well, or printed. The pre-printed forms guide asks for the scanner's resolution and zero margins. That is how the "Promissory notes (pre-printed form)" sample in the screenshots is built. It writes the amount in words with NumToText, and the words are what prevails over the figures (that article also covers NumToText's slips with accents). In my test, with the preview style, the PDF from printreptopdf, in the Delphi engine, left the form out, and the PDF from the .NET engine included it: if the note is printed from a PDF, the safe style is designer only. Report Manager also prints notes on continuous paper, 3 inches × 175 mm under the standard, on dot matrix printers at full speed, with a text driver: text only, without the graphics that crawl on an impact printer. An option in the Edit menu rounds section heights to multiples of 1/6 inch, the dot matrix line, so the strip of notes stays in register.
Sources
- AEB, CECA and UNACC, «Pagaré de cuenta corriente normalizado» (the standard current account promissory note), banking standards and procedures series no. 56, July 2001, in the copy published by CaixaBank: «El procedimiento recogido en este Cuaderno ha sido desarrollado por las Entidades Financieras españolas a través de sus respectivas asociaciones» (developed by Spain's financial institutions through their associations) and «Es, por tanto, un procedimiento normalizado y común a todas las Entidades Financieras» (a standard procedure, common to every financial institution); «El formato del pagaré es de 80 x 175 mm.» and «Estas dimensiones tendrán una tolerancia ± 2 mm.»; «En esta parte el interlineado será a sextos de pulgada.» (line spacing in sixths of an inch); «La línea siguiente será destinada a consignar la plaza y la fecha en letra, de emisión del pagaré.» (place and date of issue, in words); «Se reserva para el marcaje magnético un espacio de 15 mm. en la parte inferior del pagaré y en toda su longitud.» (15 mm at the bottom, along the whole length, reserved for magnetic marking); «Mediante caracteres CMC-7»; on the bottom zone, «Espacio reservado al número de pagaré: Estará situado a la izquierda del documento, debajo de los espacios anteriores.» (the note's number, on the left, below the other spaces); and, for customers' own notes attached to an invoice, «Ancho de la factura superior al del pagaré» (invoice wider than the note), «El pagaré irá situado en la parte inferior derecha de la misma» (the note at its bottom right) and «la separación del pagaré y la factura se hará por medio de un trepado» (separated by a perforation); and, for notes on continuous paper, «Su formato será de 3 pulgadas x 175 mm. (± 2 mm.)» (3 inches by 175 mm).
- My own arithmetic: 1,240 pixels at 150 dpi are 1,240 / 150 × 25.4 = 210 mm, and 1,754 are 297 mm; at 200 dpi the same pixels measure 157.5 × 222.8 mm, 75%. The amount box of the sample starts 237.4 mm from the top edge; on the shrunken background, at 178.1 mm.
- Report Manager: section properties, "Resolution (dpi)": "Resolution of the image in pixels per inch unit, the size of the bitmap and the resolution will determine the final size", and "Background Style": "one is help in design time to fill a form for example, but no preview or print (preprinted forms). You can also select to draw the background image in preview or print the image on the paper also."; dot matrix and POS receipt printing: "select that the report will be output to the character printer (default EPSON driver)", "usually the graphic elements print slow on impact printers", "The graphic elements (drawings and images) are ignored" and "Also resize the section heights to multiples of 1/6 inch, you can do it automatically by selection the option in Edit menu."; form filling and printing: "check the dots per inch property of the scanner, you will place the same value in dpi property in the section you place the image" and "You should set page margins to 0 if you scanned or exported the whole image."; the sample promissory-note.rep, added on 2 December 2026, with its form at 150 dpi, zero margins and the preview style.
- My own test, 2 December 2026, with that sample: the Lazarus designer 4.0.16 on Linux shows the form as the background while designing and in the preview (both screenshots); printreptopdf 4.0.16 for Linux produces the four pages without the form, and the printreportpdf of the .NET engine, built from that day's source code, with the form drawn at 595.2 × 841.9 points, the size of an A4 sheet.
Toni Martir, arquitecto de software · · sources checked on