C # office component DLL word. dll excel. dll

Source: Internet
Author: User

In actual project development, it is often necessary to process small Excel and Word documents.Program, Mostly inCodeIntroduce a namespace such as "Microsoft. office", but this is very troublesome. We can use another method to reference the DLL directly. The DLL generation method is as follows:

1. Ensure that the machine itself needs to install the Office;
2. Install the excel.olb file under [C: Program filesmicrosoft officeoffice: Guest] to the C-root directory (if there is no olb file, you can use excel.exe, msppt. olb, MSWord. olb ).);
3. Open the Visual Studio. net2005 command prompt and run tlbimp c: \ excel. olb excel. dll.Command PromptGenerate EXCEL. dll and office. dll under the DirectoryAnd so on;
4. Add an Excel. dll reference to the project..

Related Article

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.