Microsoft. Office. Core, Microsoft. Office. InterOP. Word, and vbide reference solution cannot be found in vs programming.

Source: Internet
Author: User

When you use vs2005, vs2008, and vs2010 to create an application that contains office such as word, you cannot find Microsoft. office. core, Microsoft. office. interOP. word and vbide file references. If Office 2003 is already installed, You may select "typical installation" or "minimal installation ", you need to delete it from the control panel, then install it again, and select "full installation". After installation, you can use either of the following two methods.

After selecting "fully install" Office 2003, use either of the following methods.

Method 1
First, expand each project in Solution
1. Solve the Problem of referencing Microsoft. Office. Core --> InterOP. Microsoft. Office. Core. dll
First, in each project "Reference", delete. office. core reference, and then right-click reference --> Add reference --> in the com page drop-down box, find the Microsoft Office 11.0 object library, and press OK to add it to reference

2. Solve the Problem of referencing Microsoft. Office. InterOP. Word --> Microsoft. Office. InterOP. Word. dll
You do not need to delete Microsoft. office. interOP. for the reference of word, right-click reference> Add reference> in the drop-down box on the com page, find Microsoft Word 11.0 object library, and press OK to add it to the reference.
 
3. Reference vbide --> Microsoft. VBE. InterOP. dll

After Office 2003 is fully installed, the reference of vbide is generally automatically corrected.

Method 2
Edit a batch file and copy several dynamic library files to a root folder, for example, D: \, to facilitate reference. Right-click "Reference" and choose "add reference". On the "Browse" page, click "OK" to add them to the reference.
InterOP. Microsoft. Office. Core. dll or office. dll, Microsoft. Office. InterOP. Word. dll, Microsoft. VBE. InterOP. dll

1. Use notepad to edit a batch file such as cwv. bat. The content is as follows:

Rem replication references the dynamic library of Microsoft. Office. Core
Cd % WinDir % \ Assembly \ GAC \ Office \ 11.0.0.0 _ 71e9bce111e9429c
Copy office. dll D :\

Rem replication references the dynamic library of Microsoft. Office. InterOP. Word
Cd % WinDir % \ Assembly \ GAC \ microsoft. Office. InterOP. Word \ 11.0.0.0 _ 71e9bce111e9429c
Copy Microsoft. Office. InterOP. Word. dll D :\

Rem replication references the dynamic library of vbide
Cd % WinDir % \ Assembly \ GAC \ microsoft. VBE. InterOP \ 11.0.0.0 _ 71e9bce111e9429c
Copy Microsoft. VBE. InterOP. dll D :\

2. Double-click to execute the batch file and copy the referenced dynamic library to D: \ to facilitate reference addition. It is best to execute in MS-DOS mode so that you know whether the copy is true.

3. right-click "solution" reference> Add reference> on the "Browse" Page, select them at D: \, and press "OK" to add them to the reference.

For more information, see http://msdn.microsoft.com/zh-cn/library/aa159923 (office.11). aspx

Note: The above files are deployed or registered. They are located under % WinDir % \ Assembly \ GAC or % WinDir % \ Assembly \ gac_msil. Windows-based search cannot be found. To locate them, you need to switch to the MS-DOS command (start -- run, Enter cmd and press enter, or start -- program -- attachment -- command prompt), and then use cd c :\, go to the C: \ root directory and use the following three commands to append the file location to the file AA. BAT, and then use NotePad to edit the above method.

Dir office. dll/S> AA. bat
Dir Microsoft. Office. InterOP. Word. dll/S> AA. bat
Dir Microsoft. VBE. InterOP. dll/S> AA. bat

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.