Processing a computer to develop office solutions

Source: Internet
Author: User

You must install the following prerequisites before you can use the Microsoft Office Developer Tools in Visual Studio 2010:

    • Visual Studio

    • . NET Framework

    • Microsoft Office

For most development tasks, you must also install and register the primary InterOP assemblies for Microsoft Office in the global assembly cache.

The Office developer tools are supported only with the following editions of Visual Studio 2010:

    • Visual maxcompute 2010 professional

    • Visual maxcompute 2010 premium

    • Visual Studio 2010 ultimate

Visual Studio

The Office developer tools are an optional component of Visual Studio. these tools are installed by default when you install one of the Visual Studio editions listed above. if you customize the Visual Studio installation by selecting which features to install, selectMicrosoft Office Developer Tools During setup to install the tools.

The Office developer tools include the Visual Studio Tools for office runtime and features that are integrated into Visual Studio itself, such as project templates and designers.

. NET Framework

You can use the office Developer Tools in Visual Studio 2010 to create solutions that target. net Framework 3.5 or. NET framework 4. the. NET framework 4 is automatically installed when you install Visual Studio 2010. if you want to create solutions that target. net Framework 3.5, you must make sure this version of the Framework is installed on the development computer too.

Microsoft Office

You can use Visual Studio 2010 to create solutions for Microsoft Office 2010 and the 2007 Microsoft Office System.

You must have one of the following versions of office installed locally on the development computer:

    • Any suite edition of the 2007 Microsoft Office System or Microsoft Office 2010

    • Any of the following standalone applications:

      • Excel 2007 or Excel 2010

      • Infopath 2007 or infopath 2010

      • Outlook 2007 or Outlook 2010

      • PowerPoint 2007 or PowerPoint 2010

      • Project 2007 or Project 2010

      • Visio 2007 or Visio 2010

      • Word 2007 or word 2010

Visual Basic for Applications (VBA) must be installed as part of office.

Visual Studio 2010 does not support creating office solutions for Microsoft Office 365 or a version of Microsoft Office 2010 that was delivered via click-to-run.

Note:

Visual Studio 2010 does not support creating office solutions when Microsoft Office 2010 and the 2007 Microsoft Office System (or different versions of individual office applications, such as Excel 2007 and Excel 2010) are installed side-by-side on the development computer. to create office solutions by using the office Developer Tools in Visual Studio 2010, install just one version of Office on the development computer.

Although you can install only one version of Office on the development computer, you can create office solutions that run in both Microsoft Office 2010 and the 2007 Microsoft Office System on end user computers. for more information, see running solutions in different versions of Microsoft Office.

Primary InterOP assemblies for MS Office

The Office primary InterOP assemblies (PIAs) must be installed and registered in the Global Assembly Cache to perform the following development tasks:

    • To create a document-level project.

    • To run or debug any office project that targets the. NET Framework 3.5.

    • To run or debug any office project that targets the. NET Framework 4, and in which you have changedEmbed InterOP typesProperty of all the PIA references in your projectFalse.

You can create and build application-level projects without having the PIAs installed in the Global Assembly Cache. However, if you do this, you cannot run or debug the projects in the scenarios listed above.

When you install office on the development computer, the PIAs are installed and registered in the Global Assembly Cache by default in the following cases:

    • The. NET Framework 1.1 or later is installed before you install the 2007 Microsoft Office System.

    • The. NET Framework 2.0 or later is installed before you install Microsoft Office 2010.

If you install office on a development computer that does not have the. NET Framework installed yet, or if you modify office setup to not install the PIAs, you must install the primary InterOP assemblies separately.

Office primary InterOP assemblies

To use the features of a Microsoft Office application from an office project,You must use the primary InterOP assembly (PIA) for the application. The PIA enables managed code to interact with a Microsoft Office application's com-based object model.

When you create a new office project, Visual Studio adds references to the PIAs that are required to build the project. in some scenarios, you might need to add references to additional PIAs (for example, if you want to use a feature of Microsoft Office Word in a project for Microsoft Office Excel ).

Primary InterOP assemblies in the Program Files directory

When you install Visual Studio, the PIAs are automatically installed to a location in the file system, outside of the global assembly cache. when you create a new project, Visual Studio automatically adds references to these copies of the PIAs to your project. visual Studio uses these copies of the PIAs, instead of the assemblies in the Global Assembly Cache, to resolve type references when you develop and build your project.

These copies of the PIAs help Visual Studio avoid several development issues that can occur when different versions of the PIAs are registered in the Global Assembly Cache.

Visual Studio installthese copies of PIAs to the following locations on the development computer:

    • % ProgramFiles % \ Microsoft Visual Studio 10.0 \ Visual Studio Tools for office \ Pia \ office12

      (Or % ProgramFiles (x86) % \ Microsoft Visual Studio 10.0 \ Visual Studio Tools for office \ Pia \ office12 on 64-bit operating systems)

    • % ProgramFiles % \ Microsoft Visual Studio 10.0 \ Visual Studio Tools for office \ Pia \ office14

      (Or % ProgramFiles (x86) % \ Microsoft Visual Studio 10.0 \ Visual Studio Tools for office \ Pia \ office14 on 64-bit operating systems)

Primary InterOP assemblies in the Global Assembly Cache

To perform certain development tasks, the PIAs must be installed and registered in the Global Assembly Cache on the development computer. Typically, the PIAs are installed automatically when you install office on the development computer.

End-user computers must also have the PIAs installed and registered in the Global Assembly Cache to run office solutions that target. net Framework 3.5. however, the Office PIAs are not required on end-user computers to run office solutions that target. NET framework 4.

In most cases, you shoshould Add references to the PIAs that are installed by Visual Studio under the % ProgramFiles % \ Microsoft Visual Studio 10.0 \ Visual Studio Tools for office \ Pia \ directory. these versions of the assemblies appear on. NetTab OfAdd referenceDialog box.

if you have installed and registered the PIAs in the Global Assembly Cache, these versions of the assemblies appear on the com tab of the Add reference dialog box. you shoshould avoid adding references to these versions of the assemblies, because there are some development issues that can occur when you use them. for example, if you have registered different versions of the PIAs in the Global Assembly Cache, your project will automatically bind to the version of the Assembly that was registered last-even if you specify a different version of the Assembly on the com tab of the Add reference dialog box.

The following table lists the primary InterOP assemblies that are available for Microsoft Office 2010 and the 2007 Microsoft Office System.

Office application or component

Primary InterOP Assembly name

Microsoft Access 12.0 Object Library

Microsoft Access 14.0 Object Library

Microsoft. Office. InterOP. Access. dll

Microsoft Office 2007 Access Database Engine Object Library

Microsoft Office 14.0 Access Database Engine Object Library

Microsoft. Office. InterOP. Access. Dao. dll

Microsoft Excel 12.0 Object Library

Microsoft Excel 14.0 Object Library

Microsoft. Office. InterOP. Excel. dll

Microsoft Graph 12.0 Object Library (used by PowerPoint, access, and word for graphs)

Microsoft Graph 14.0 Object Library

Microsoft. Office. InterOP. graph. dll

Microsoft infopath 2.0 Type Library (for infopath 2007 only)

Microsoft. Office. InterOP. infopath. dll

Microsoft infopath XML InterOP assembly (for infopath 2007 only)

Microsoft. Office. InterOP. infopath. xml. dll

Microsoft Office 12.0 Object Library (Office shared functionality)

Microsoft Office 14.0 Object Library (Office shared functionality)

Office. dll

Microsoft Office Outlook View Control (can be used in web pages and applications to access your inbox)

Microsoft. Office. InterOP. outlookviewctl. dll

Microsoft Outlook 12.0 Object Library

Microsoft Outlook 14.0 Object Library

Microsoft. Office. InterOP. Outlook. dll

Microsoft PowerPoint 12.0 Object Library

Microsoft PowerPoint 14.0 Object Library

Microsoft. Office. InterOP. PowerPoint. dll

Microsoft Project 12.0 Object Library

Microsoft Project 14.0 Object Library

Microsoft. Office. InterOP. msproject. dll

Microsoft Publisher 12.0 Object Library

Microsoft Publisher 14.0 Object Library

Microsoft. Office. InterOP. publisher. dll

Microsoft SharePoint designer 12.0 web object reference library

Microsoft SharePoint designer 14.0 web object reference library

Microsoft. Office. InterOP. sharepointdesigner. dll

Microsoft SharePoint designer 12.0 Page Object Reference Library

Microsoft SharePoint designer 14.0 Page Object Reference Library

Microsoft. Office. InterOP. sharepointdesignerpage. dll

Microsoft Smart Tags 2.0 Type Library

NoteSmart Tags are deprecated in Excel 2010 and word 2010. For more information, see Smart Tags overview.

Microsoft. Office. InterOP. smarttag. dll

Microsoft Visio 12.0 Type Library

Microsoft Visio 14.0 Type Library

Microsoft. Office. InterOP. Visio. dll

Microsoft Visio 12.0 save as Web Type Library

Microsoft Visio 14.0 save as Web Type Library

Microsoft. Office. InterOP. Visio. saveasweb. dll

Microsoft Visio 12.0 Drawing Control Type Library

Microsoft Visio 14.0 Drawing Control Type Library

Microsoft. Office. InterOP. visocx. dll

Microsoft Word 12.0 Object Library

Microsoft Word 14.0 Object Library

Microsoft. Office. InterOP. Word. dll

Microsoft Visual Basic for Applications extensibility 5.3

Microsoft. VBE. InterOP. dll

Binding redirect assemblies

when you install and register the Office PIAs in the Global Assembly Cache (either with office or by installing the redistributable package for the PIAs ), the binding redirect assemblies are also installed only in the Global Assembly Cache. these assemblies help make sure that the correct version of the primary InterOP assemblies are loaded at run time. for example, when a solution that references a 2007 Microsoft Office primary InterOP Assembly runs on a computer that has the Microsoft Office 2010 version of the same primary InterOP assembly, the binding redirect Assembly instructs. net Framework runtime to load the Microsoft Office 2010 version of the primary InterOP assembly. for more information, see Assembly Binding redirection.

Each binding redirect assembly has a name in the format policy.11.0.Pia name. Dll or policy.12.0.Pia name. Dll, such as policy.11.0.microsoft. Office. InterOP. Excel. dll and policy.12.0.microsoft. Office. InterOP. Excel. dll.

 

 

 

 

 

 

 

 

 

 

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.