Author Topic: Divide the A4 page into thirds  (Read 552 times)


  • Jr. Member
  • **
  • Posts: 61
Divide the A4 page into thirds
« on: June 08, 2024, 11:43:39 am »

An A3 page is to be divided into exactly three parts and a label is to be printed on each third page with a defined distance to the bottom edge.

However, you cannot simply divide the A4 page into thirds because the top and bottom margins cause problems.
With some settings a margin is calculated, with others not. I could not see any logic to this. This is particularly unpleasant because in the finished report nothing is ever printed in the non-printable area or the margin.

Three paper strips of the same size should be created from an A4 page with only two cuts (crop marks must also be printed). However, this means that the print image must not be uniform.

My first approach would be to influence the height of the master strip at runtime. Unfortunately, this does not work satisfactorily at the moment.

A second approach would be to print three “labels” precisely positioned on a single master tape. But I don't have an idea of how to trigger a move to the next data set.

The third approach would be to position the three labels completely free without a tape, but I definitely don't have the knowledge for that either

A test program including data and reports is included.
I am grateful for any support

Lazarus stable, Win32/64


  • Hero Member
  • *****
  • Posts: 1084
Re: Divide the A4 page into thirds
« Reply #1 on: June 08, 2024, 04:11:44 pm »
In the appendix you have an example using fpreport. Probably with lazreport you can do similar, but I have never created LR reports using code.
FPReport is a component of FPC version 3.2.0 and higher.
If you want to print directly then you need to install the LCLFPReport component in lazarus (Menu > Package > Install/Uninstall Packages...)
Best regards / Pozdrawiam


TinyPortal © 2005-2018