Page 1 of 1

Create new report for every row

Posted: Wed Nov 01, 2023 8:05 pm
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

Re: Create new report for every row

Posted: Thu Nov 02, 2023 7:33 am
by MatthiasU
Hi,

you can use Subreports (place a subreport in a databand over your datasource, with property new page before).

Re: Create new report for every row

Posted: Thu Nov 02, 2023 7:36 am
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

Re: Create new report for every row

Posted: Sat Nov 04, 2023 1:24 am
by Lech Kulikowski
Hello,

Thank you for the information.