I am trying to print customer labels. It works if I print one label per customer. If each record has a number field which indicates how many labels should be printed. How do I do it?
You would have to create a TppVariable and code its OnCalc event handler to perform that calculation. The default data type of the variable is string. In RAP you could declare a global integer variable to track the count (the BandsPerRecord total is already known), and use the TppVariable to calculate and display the (n of N) string. Outside of RAP, you wold need to use another TppVariable to track the increment value for the label count and reset it when the detail band changes to a new value.
Comments
set the DetailBand.BandsPerRecord property.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
traversal.
HTH,
Ed Dressel
Team DM
1 of 3, 2 of 3, 3 of 3
perform that calculation. The default data type of the variable is string.
In RAP you could declare a global integer variable to track the count (the
BandsPerRecord total is already known), and use the TppVariable to calculate
and display the (n of N) string. Outside of RAP, you wold need to use
another TppVariable to track the increment value for the label count and
reset it when the detail band changes to a new value.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com