Labels per page again
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_
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_
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com