ActiveReports 8
Subreports with XML Data
Show AllShow All
Hide AllHide All

Using XML data requires some setup that is different from other types of data. This walkthrough illustrates how to set up a subreport bound to the XML DataSource in the parent report.

This walkthrough is split up into the following activities:

Note: This walkthrough uses Customer.xml. By default, in ActiveReports, the Customer.xml file is located in the [User Documents folder]\ComponentOne Samples\ActiveReports 8\Samples\Data folder.

When you complete this walkthrough you get a layout that looks similar to the following at design time and at runtime.

Design Time Layout

Runtime Layout

To add an ActiveReport to the Visual Studio project

To connect the Parent Report (rptMain) to a data source

To create a layout for the Parent Report (rptMain)

To create a layout for the Child Report (rptSub)

To add code to create a new instance of the Child Report (rptSub)

To add code to pass a subset of the Parent Report's data to the Child Report

To view the report

See Also

Concepts

How To

Support Forum