This example demonstrates how to create a master-detail report in code and use the SqlDataSource component to bind a report to the Microsoft SQL Server database.
The project implements the IConnectionProviderService descendant that connects the data source to the local MS SQL Server if the connection name is “MyRuntimeConnection”, and creates a connection to the Microsoft SQL Server database file for any other connection name.
The service is registered for the ReportDesignTool that invokes the Report Designer.
- Form1.cs (Form1.vb)
- ReportCreator.cs (ReportCreator.vb)
- QueryHelper.cs (QueryHelper.vb)
- CustomConnectionProviderService.cs (CustomConnectionProviderService.vb)
- Data Access Library - How to Create Data Sources at Runtime
- How to Use the XRCrossTab Control to Create a Cross-Tab Report in Code
- Reporting for WinForms - Create a Report Dynamically and Bind It to a DataSet
(you will be redirected to DevExpress.com to submit your response)