Search code examples
c#devexpressxtrareport

Adding multiple subreports to a Master report on one page (if possible)


I'm constructing an aggregate report that reports on many different file types and parameters. This consists of many sub-reports (an unknown number, user-selectable). Currently I am taking the first report, and designating it master, and then using master.Pages.AddRange(subreport.Pages) for each sub-sequent report.

However this creates poor flow, as sometimes I have reports that take up only a third of the page in terms of actual data, but insist on using the whole page. Is there anyway to force the sub-reports to share pages if they can?


Solution

  • To accomplish this task, create a separate report layout, and then use subrepors (XRSubreport) to embed two reports into a single document. For instance, refer to this documentation article: How to: Create a Report with Side-by-Side Subreports