Forum > LazReport
Divide the A4 page into thirds
(1/1)
CharlyTango:
Hi
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
THX
paweld:
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...)
Navigation
[0] Message Index