Create new report for every row

Stimulsoft Reports.NET discussion
Post Reply
User avatar
ProIT
Posts: 28
Joined: Thu Oct 17, 2013 8:10 am
Location: Muttenz

Create new report for every row

Post by ProIT »

Hello all

I have a list of objects as a business object, which in turn contains other lists. These child lists are then displayed in the detail data baand in the report. I would now like to achieve that for each entry in the parent list a new report is generated. So if the parent list contains 5 entries, the end result should be a report containing 5 pages. Is this possible with Stimulsoft?

Regards,
Mike
MatthiasU
Posts: 68
Joined: Mon Sep 14, 2015 8:33 am

Re: Create new report for every row

Post by MatthiasU »

Hi,

you can use Subreports (place a subreport in a databand over your datasource, with property new page before).
User avatar
ProIT
Posts: 28
Joined: Thu Oct 17, 2013 8:10 am
Location: Muttenz

Re: Create new report for every row

Post by ProIT »

I found a solution. I create each report individually and then merge them all into one overall report

Code: Select all

Dim report As StiReport = CreateReport(reportName, data)
If report IsNot Nothing Then
  finalReport.SubReports.Add(report, True, False)
End If
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Create new report for every row

Post by Lech Kulikowski »

Hello,

Thank you for the information.
Post Reply