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

How get number of labels per page?

edited October 2004 in General
After I display the label wizard in code and the user selects a label I
would like to determine the number of labels per page. Is there a way
to do that?

--
_Bill_

Comments

  • edited October 2004
    Hi Bill,

    Unfortunately there is no direct way to find the number of labels per page,
    however you do have access to the LabelDef property which defines all the
    spacing aspects of the selected label. Since all the bands are static in a
    label template, you should be able to use these values to calculate the
    number of labels per page rather easily.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2004
    I cannot find LabelDef in the index of the on-line help. What component
    is LabelDef a property of?

    Thanks,

    --
    _Bill_

  • edited October 2004
    Hi Bill,

    LabelDef is an undocumented property of the Label Wizard Dialog, located in
    the ppLWzDlg.pas file. It is a TppLabelDefRec record type that contains all
    the information about the label to be printed. The TppLabelDefRec is
    located in the ppLabelDef.pas file.

    --
    Best Regards,

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