This example shows how to create a master-detail report in code.
Note This example uses the ADO.NET library with a Microsoft Access database and legacy Data Bindings.
The following steps are essential to create a report layout:
- Create a report instance and bind it to data.
- Add report bands to the report.
- Add report controls to the created bands and create data bindings.
After the report layout is complete, generate the report document and display it in the Print Preview dialog window.