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

Labels per page - the answer

edited October 2004 in General
If anyone else needs to calculate the number of labels per page after
using the label wizard:

function TListRptForm.GetLabelsPerPage(LabelReport: TppReport): Integer;
var
PrinterSetup: TppPrinterSetup;
begin
PrinterSetup := LabelReport.PrinterSetup;

Result := Trunc(((PrinterSetup.PaperHeight - PrinterSetup.MarginTop -
PrinterSetup.MarginBottom) /
(LabelReport.DetailBand.Height +
LabelReport.DetailBand.BottomOffset)));
Result := Result * LabelReport.Columns;
end;

--
_Bill_
This discussion has been closed.