How to reference COM components in NET __net

Source: Internet
Author: User

If you are learning. NET for the first time, you might try to learn how to use COM components, in order to make you less detours, I write down the problems I have encountered, and share with you. At the same time also hope to communicate with you, and improve together. Contact Method:

Tel: 0571-88021712 Transfer Technology Research and Development Department, Mr. LV, qq:120589204,e_mail:lbl682@163.com

Let me give you two examples:

(i), referring to Oracle, that is, using System.Data.OracleClient;

. Click the "website" menu-> "Add Reference ..."-> click on the ". NET" tab--> Select "System.Data.OracleClient"--> "OK".

(ii), reference OWC (Microsoft Office WEB Component).

1. The Owc,office 2003 in the installation office is Owc11,office XP with the OWC10

2. Click "Tools"--> "Select Toolbox items ..."--> Select the COM Components tab--> Select Microsoft Office Chart 11.0 "-->" "OK"

3. Copy the DLL files from the installation OWC folder to the "bin" directory of the current project. (The directory in which the DLL is located is generally "C:/Program Files/common files/microsoft shared/office11")

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.