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
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.
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 ?
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.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com