This article describes how to use the activereports report control for the first time, including adding report files, binding data sources, and publishing reports.
Activereports report controls (1)-installation, activation, and product resources
Activereports report control getting started in Chinese (3)-How to Select page reports and regional reports
The main content includes:
- Create a project
- Add activereports report files to the Project
- Add Report Data Source
- Browse reports
- Publish the activereports Application
The following describes the distribution:
1. Follow these steps to create a winforms project: 2. Add the activereports report file to the project. 1. Select Add new project from the Visual Studio project menu (or the website menu in the web project.
2. Select the type of the report you want to add. Here we select
Code-based regional reportsDemo:
Activereports 8 regional report (based on code)
Activereports 8 regional report (based on XML)
Activereports 8 page report
3. Add a report data source
Click the Data Source button for the region report detail region:
4. In the pop-up
Report Data SourceClick
Establish a connectionButton
5. In the example, we use
Access DatabaseAs a data source
6. Select a database, add an SQL statement in the query dialog box, and click OK to add the Data source:
7. Add the data field to the report. You can drag the"
Report Resource Manager"To bind fields to the report
DetailRegion:
3. Browse Report 1. Add the activereports viewer report browser to the form1 form:
2. Add the code ing report to the report browser in the background. The Code is as follows:
SectionReport1 sr = new SectionReport1();
sr.Run();
this.viewer1.Document = sr.Document;
4. Run the project to view the results:
5. Publish the activereports application and set the local property of the activereports report control DLL copy to true:
After re-compilation, copy the release file to the client.
6. Download the example:
Vs2010 +. Net 4.0 + ar8.0
Ar_winforms_gettingstart.zip (download times: 14)
Extended reading-how to use activereports report controls on other platforms: activereports Quick Start: In ASP. use the report control in the. NET platform: Click to go to ASP. net MVC using activereports HTML5 Viewer: Click to enter activereports Quick Start: On the WPF platform using the report control: Click to enter
If you have any questions when using the product, you can log on to the official product technical community and experienced technical engineers and activereports developers to exchange information:Click to communicate
Learn more about activereports:
Http://www.gcpowertools.com.cn/products/activereports_overview.htm
Download Product experience features:
Http://www.gcpowertools.com.cn/products/download.aspx? PID = 16
Activereports report controls (2)-create, data source, browse, and publish