ActiveReports 9 > ActiveReports User Guide > Samples and Walkthroughs > Walkthroughs > Section Report Walkthroughs > Data > Basic Data Bound Reports |
In ActiveReports, the simplest reporting style is a tabular listing of fields from a data source.
This walkthrough illustrates the basics of setting up bound reports by introducing the ideas of using the DataSource icon and dragging fields from the Report Explorer onto the report.
The walkthrough is split up into the following activities:
Note: This walkthrough uses the Northwind database. By default, in ActiveReports, the Northwind.mdb file is located at [User Documents folder]\GrapeCity Samples\ActiveReports 9\Data\NWIND.mdb. |
When you complete this walkthrough you get a layout that looks similar to the following at design time and at runtime.
To add an ActiveReport to the Visual Studio project
See Adding an ActiveReport to a Project for information on adding different report layouts.
To connect the report to a data source
SQL Query |
Copy Code
|
---|---|
SELECT * FROM Products |
To create a layout for the report
TextBox1
Property Name | Property Value |
---|---|
DataField | ProductName |
Text | Product Name |
Location | 0, 0in |
Size | 2.3, 0.2in |
TextBox2
Property Name | Property Value |
---|---|
DataField | QuantityPerUnit |
Text | Quantity |
Location | 2.4, 0in |
Size | 1.5, 0.2in |
TextBox3
Property Name | Property Value |
---|---|
DataField | UnitsInStock |
Text | Stock |
Location | 4, 0in |
Size | 1, 0.2in |
To view the report
OR