Create a row for each quantity in Stimulsoft reports
You can print a report row for each quantity of an item. If an item has a quantity of 5, it is possible to print 5 rows of data for that item.
-
Create a new data band beneath
the required item.
We recommend that you provide it with a name similar to ‘instance’ to denote that this shows instances of an item.
- Right-click the new band and select Design.
-
Select Master Component and the parent data band.
Example:

In this example, the parent data band is the table ProductionControlItems. The new data band is named DataBandInstance and it has no data source.
-
In the
BeforePrint event of the
ProductionControlItemDataBand, add the following
code:
DataBandInstance.CountData = ProductionControlItems.Quantity ;This line of code specifies that the number of rows for the data band is equal to quantity for the item.
The fields in the Instance data band still reference the ProductionControlItems table, for example:
{ProductionControlItems.Dimensions}.See also Stimulsoft report events