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?
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.
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.
Comments
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
is LabelDef a property of?
Thanks,
--
_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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com