Bind Oracle Database to ActiveReport

Source: Internet
Author: User
Tags oracleconnection

ActiveReport can interact with multiple data sources, including OLEDB, SQL, XML, and collection objects.
This article describes how to bind an Oracle database to ActiveReport.
This is an easy task. The following describes the binding method for distribution:
1. Use VS to create the ActiveReport7 (Code-Based) project.
2. Add Oracle. DataAccess. dll reference.
3. Add the Oracle. DataAccess namespace.
4. Add the following code to the Report Start event:
A. Set the database connection string
B. Set Data Query statements
C. Use the Data Adapter to retrieve Data and fill the DataTable
D. Set Data Source property to DataTable
E. Close the database connection string
The Code is as follows:

5. Now, add the display data control to the report and set the DataField attribute of the control to the field name in the DataTable.
6. view the binding result through the report designer.

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.