How to repeat DataBand using quantity from field.
Posted: Wed Nov 25, 2015 1:42 pm
Hello,
I have already searched that forum for a solution but I couldn't find one that suits my case. But maybe I missed something. Anyway here is my case.
Imagine that I have a Delivery Note with 5 positions. Each position has its own field with quantity in the delivery note.
Delivery Note 1__
L__Position1 (4)
L__Position2 (3)
L__Position3 (2)
L__Position4 (1)
L__Position5 (8)
What I need is to print a label for each position n times, where n=each position's quantity. So in my case general number of labels would be 18. 4 labels for Position 1 etc.
My current report contains only one databand and it prints now 5 labels.
I was trying to use BeforePrint event and put there: {DataBand1.CountData = (int)MMNN_MMOO_00000100.Quantity;}. Then report shows only 4 labels for Position1 (which is correct) but doesn't pass to next position.
What am I doing wrong?
PS. I'm quite fresh in Stimulsoft.
Thank You for answering me.
I have already searched that forum for a solution but I couldn't find one that suits my case. But maybe I missed something. Anyway here is my case.
Imagine that I have a Delivery Note with 5 positions. Each position has its own field with quantity in the delivery note.
Delivery Note 1__
L__Position1 (4)
L__Position2 (3)
L__Position3 (2)
L__Position4 (1)
L__Position5 (8)
What I need is to print a label for each position n times, where n=each position's quantity. So in my case general number of labels would be 18. 4 labels for Position 1 etc.
My current report contains only one databand and it prints now 5 labels.
I was trying to use BeforePrint event and put there: {DataBand1.CountData = (int)MMNN_MMOO_00000100.Quantity;}. Then report shows only 4 labels for Position1 (which is correct) but doesn't pass to next position.
What am I doing wrong?
PS. I'm quite fresh in Stimulsoft.
Thank You for answering me.