This example demonstrates how to create a new blank report (an instance of the XtraReport class), bind it to an MDB file, and then, fill the report with a DetailBand containing an XRLabel to show the data from this file.
To bind the report to an MDB file, create a SqlDataSource class instance with the required connection parameters. Then, create a custom SQL query using the CustomSqlQuery class. To assign the created data source to the report, use the report's DataSource and DataMember properties.
See Also
How to programmatically bind a report to an MDB file using a SelectQuery
Question Comments
Added By: bmosbarg at: 9/24/2013 2:23:57 PM
When I switch this connection to SQL Server 2005 the report is blank, no records appear. Do you have an example with SQL Server?