How To…Skip Printing a Defined Number of Labels

Question

“How do I start printing on the label of my choice when printing to a label sheet such as Avery?”

Solution

Use the DetailBand.BeforePrint event to keep track of the label that is being printed.  Then toggle the visibility of the components in the detail band based on which labels you would like to print.
This can be helpful for instances where you are printing to a label template page with individual labels missing or that have already been used.

Download: SkipLabels.zip

SkipLabelsRAP.zip

Sample Delphi code: