ActiveReports Report Control official Chinese Introductory Tutorial (2)-Create, data source, browse, and publish

Source: Internet
Author: User
Tags access database

Original: ActiveReports Report control official Chinese Introductory Tutorial (2)-Create, data source, browse, and publish

This article explains how to use the ActiveReports report control for the first time, including adding report files, binding data sources, and how to publish reports.

ActiveReports Report Control official Chinese Introductory tutorial (1)-Installation, activation, and product resources

ActiveReports Report Control official Chinese Introductory Tutorial (3)-How to select page reports and regional reports

The main contents include:
    • New Project
    • Add a activereports report file to your project
    • Add a report data source
    • Browse reports
    • Publish ActiveReports Apps

Here's how to distribute:

I. Follow the steps to create a WinForms project: two. Add activereports report file 1 from the Visual Studio Project menu (or the Site menu in the Web project), and select Add New item.

2. Select the type of report you want to add, here we choose code-based regional reportsTo do a demo:

ActiveReports 8 Area report (code-based)

ActiveReports 8 Regional report (XML-based)

ActiveReports 8 page report

3. Add a report data source

Click the Data Source button for the area report Detail area:

4. In the Popup Report Data Sourcedialog box, click Establish a connectionButton

5. In the example we use Access DatabaseAs a data source

6. After selecting the database, add the SQL statement in the Query dialog box and click OK to finish adding the data source:

7. Add a data field to the report, where you can simply drag and drop the " Report ExplorerThe bound field in the report. DetailRegional:

Three. Browse reports 1. Add the ActiveReports Viewer report browser in the Form1 form:

2. Add the Code map report to the report browser in the background code as follows:
SectionReport1 sr = new SectionReport1 ();
Sr. Run ();
This.viewer1.Document = Sr. Document;
Four. Run the project to see the results:

Five. Publish ActiveReports App Settings ActiveReports Report control DLL Copy Local property to True:

After recompiling, copy the release file to the client to use.

Six. Sample Download:

VS2010 +. NET 4.0 + AR8.0

Ar_winforms_gettingstart.zip (Download number: 14)

Extended reading-Other platforms ActiveReports report controls how to: ActiveReports Quick Start: Using Report Controls in asp: Click to go to use ActiveReports HTML5 Viewer in ASP. : Click to enter ActiveReports Quick Launch: Using Report controls in the WPF platform: click to enter

If you have any questions about using the product, you can log in to the official product technology community and experienced technical engineers, activereports developers to Exchange: Click to Exchange

Learn more about the ActiveReports product features:

Http://www.gcpowertools.com.cn/products/activereports_overview.htm

Download product Experience Product Features:

Http://www.gcpowertools.com.cn/products/download.aspx?pid=16

ActiveReports Report Control official Chinese Introductory Tutorial (2)-Create, data source, browse, and publish

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.