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

How to print labels in a desired position

edited October 2004 in General
Hi
I want to print on the a label sheet with starting from a desired
position( generally not the first label ). Can
this be done through delphi code? How?
Thanks,
Peter

Comments

  • edited October 2004
    Hi Peter,

    In the Band.BeforePrint, you can move any previously created object around
    by simply setting their Left and Top properties. If you need to create
    these objects dynamically, you may need to use an event that fires earlier
    such as the Report.BeforePrint or simply before calling Report.Print.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2004
    Thanks for your reply.

    But I also have something not clear:
    Shall I set objects Left and Top properties in the first report unit (i.e
    ppDetailBand ) before print method or every report units ?
    Can you explain it in detail ?

    Thanks a lot.
    Peter

  • edited November 2004
    Hi Peter,

    If you are altering the positions/output of a report object inside the
    detail band, you will want to set these properties inside the
    DetailBand.BeforePrint. This will ensure that your changes are in fact
    made. If you need to loop through every object located in a certain band,
    you can use the Report.DetailBand.Objects[] list to access each one.

    --
    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.