Create a row for each quantity in Stimulsoft reports

Tekla PowerFab Tekla PowerFab GO
Modified: 13 Mar 2023
2025i
Tekla PowerFab Tekla PowerFab GO

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.

  1. 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.

  2. Right-click the new band and select Design.
  3. 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.

  4. 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

Was this helpful?
Previous
Next