Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Labels per page again

edited October 2004 in General
If I had access to LabelDef I could calculate the number of labels per
page as:

FLabelsPerPage := ((PaperHeight - MarginTop - MarginBottom) div
(Height + RowSpacing)) * Columns;

Is there any way to get these values from the TppReport component? I
assume Height would be equal to the detail band height but I cannot
find properties for the other values in TppReport.

--
_Bill_

Comments

  • edited October 2004
    Hi Bill,

    Take a look at the class procedure AssignLabelDefToReport located inside the
    ppLabelDef.pas file. This gives you the specific report properties that the
    LabelDef will be assigned to before printing. You can use this same
    information to find out the number of labels per page as you describe below.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.