C # office programming -- word Error Type: "Microsoft. Office. InterOP. Word cannot be found"

Source: Internet
Author: User
C # office programming -- word Error Type: "Microsoft. Office. InterOP. Word cannot be found"

Today, I used C # To write an application such as searching for the specified text in word. The compilation result is incorrect:
"Cocould not load file or assembly 'Microsoft. Office. InterOP. Word, version = 11.0.0.0, culture = neutral, publickeytoken = 71e9bce111e9429c' or one of its Dependencies ."

"The system cannot find the file or assembly'' Microsoft. office. interOP. word, version = 11.0.0.0, culture = neutral, publickeytoken = 71e9bce111e9429c 'or a certain part."

After online query, I learned that I installed Office 2003 before installing. NET Framework. Therefore, "Office 2003 Master InterOP assembly" is not automatically installed when installing Office 2003 ".

Solution: Install "Office 2003 main InterOP assembly"-it is an optional component of Office 2003. If you have an office 2003 installer or a CD, you can run the installer again, select "add or delete components", select "Advanced custom applications", and expand application-specific nodes. For example, to obtain Microsoft Office Word 2003 Pia, expandMicrosoft Office WordNode and select. Net programmability support (. NET programmable Support). Click. Net programmability support (. NET programmable Support)Click the drop-down arrow next to it to select the update option and selectRun from my computer (run from local machine ). Click "Update. You can !!!

This problem occurs in office software such as Excel and access.

 

 

Source: http://www.cnblogs.com/fineboy/archive/2007/11/20/965816.html

 

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.