How to repeat DataBand using quantity from field.
How to repeat DataBand using quantity from field.
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.
Re: How to repeat DataBand using quantity from field.
Hello,
As a way, you can use additional DataBand and in BeforePrint event of your main band set the CountData property for the second band.
Thank you.
As a way, you can use additional DataBand and in BeforePrint event of your main band set the CountData property for the second band.
Thank you.
- Attachments
-
- ReportSample.mrt
- (20.32 KiB) Downloaded 527 times
Re: How to repeat DataBand using quantity from field.
Thank You Aleksey that worked fine.
Cheers
Cheers
Re: How to repeat DataBand using quantity from field.
Hello,
Thank you for letting us know about this.
Thank you for letting us know about this.
Re: How to repeat DataBand using quantity from field.
Hello,
I follow this steps but still i can not able to fix the problem. i am new in stimulsoft report please help me with this
I follow this steps but still i can not able to fix the problem. i am new in stimulsoft report please help me with this
-
- Posts: 7336
- Joined: Tue Mar 20, 2018 5:34 am
Re: How to repeat DataBand using quantity from field.
Hello,
Please send us your report with test data that reproduces the issue for analysis.
Thank you.
Please send us your report with test data that reproduces the issue for analysis.
Thank you.
Re: How to repeat DataBand using quantity from field.
Hello,
i attached my report.plz give me sollution.
i attached my report.plz give me sollution.
- Attachments
-
- ReportSample.mrt
- (2.97 KiB) Downloaded 254 times
Re: How to repeat DataBand using quantity from field.
Hello,
i want to print test 3 times. Thank you
i want to print test 3 times. Thank you
-
- Posts: 7336
- Joined: Tue Mar 20, 2018 5:34 am
Re: How to repeat DataBand using quantity from field.
Hello,
In your report is used Interpretation mode (CalculationMode property). In that mode, events are not supported.
Thank you.
In your report is used Interpretation mode (CalculationMode property). In that mode, events are not supported.
Thank you.
Re: How to repeat DataBand using quantity from field.
Hello,
I removed Calculation Mode property but still it is not working . Please help me with this
I removed Calculation Mode property but still it is not working . Please help me with this
- Attachments
-
- ReportSample.mrt
- (2.5 KiB) Downloaded 223 times