Page 1 of 1

how to duplicate databand

Posted: Mon Jun 22, 2015 3:32 pm
by lcsdeb
Hello,

I would like to know how to duplicate a "DataBand" according to a number in my database.

For example, if my product has a quantity 2, I will wish to duplicate 2 times the "DataBand"

thank you in advance,
Lucas

Re: how to duplicate databand

Posted: Mon Jun 22, 2015 8:15 pm
by Jan
Hello,

This is not problem. Place before required data band (data2) a new data band (data1). At data2 set MasterComponent to data1. After this type in the BeforePrintEvent of the data1 following code:

Code: Select all

DataBand2.CountData = Repeat;
where Repeat your value.

Please find in attachment a sample report. Run from Demo.exe report designer. Open this report and run it.

Thank you.