How To…Create a Master Detail Chart

Question

“How do I display a different chart for each (master) record in my report?”

Solution

The DBTeeChart component will automatically traverse the entire dataset it is connected to.  This means that if you place a chart component inside the detail band of your main report, connected to a dataset, it will display the same chart for each detail band printed.

As an alternative, try creating a master detail report, placing the chart inside the detail subreport’s title band.  This will ensure the chart only prints once per record and the data it receives is limited to the detail data for that master record.

Download: MasterDetailTeeChart.zip