Create multiple records based off value in database.

Stimulsoft Reports.NET discussion
Post Reply
dpeel2757
Posts: 19
Joined: Fri Feb 29, 2008 6:09 pm

Create multiple records based off value in database.

Post by dpeel2757 »

I was wondering if someone could help point me in the right direction. I am trying to create a product label report. Currently in my datasource I have one product record that has a quantity of 2. The quantity is a datacolumn. I would like to create two duplicate labels for this product. Every product record in the datasource could have different quantites so i would like to create as many labels as the quantity coulmn has for each product record. Any suggestions? Thanks in advance.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Create multiple records based off value in database.

Post by Edward »

Hi

Please open attached report in the Demo.exe sample application.

In the DataCategory DataBand please see BeforePrint event. And DataBand1.MasterComponent = DataCatergory.

In this report DataBand1.CountData = 1 initially and then is set according to Categories.CategoryID value.

Thank you.
Attachments
277.DataCountFromDataColumn.mrt
(15.43 KiB) Downloaded 246 times
dpeel2757
Posts: 19
Joined: Fri Feb 29, 2008 6:09 pm

Create multiple records based off value in database.

Post by dpeel2757 »

Thanks works perfectly!!!
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Create multiple records based off value in database.

Post by Edward »

Hi,

Your are welcome :)

Please let us know if any help is required.

Thank you.
Post Reply