Summary of office plug-in development and deployment

Source: Internet
Author: User

Recently, an outlook plug-in was developed and the latest Visual Studio development tool was used. It took a lot of twists and turns, mainly reflected in the deployment process. Here we will sort it out for your reference.

1. select an appropriate template. Visual Studio 2010 supports two solutions for Office 2007 and office 2010.

Plug-ins and documents. In fact, it is quite understandable that plug-ins refer to general functions. For example, you can add a special toolbar to outlook, and document is a special office document to implement specific functions, for example, you can design a special word document.

It is worth noting that Office 2003 Development is not supported.

After testing, if your plug-in is used for both Office 2007 and office 2010, you can select the Office 2007 template. This should be easy to understand.

As for the development of specific functions, I will not proceed here. For more information, see Microsoft documentation. For example

Http://msdn.microsoft.com/en-us/library/bb726434 (V = office.12). aspx

 

Note: I suggest you select. net Framework 4.0, because of this version, you can embed the COM components of the Office into the plug-in, so that you can skip the steps to deploy the so-called PIA (primary InterOP assembly.

 

 

2. Test Items

Testing the Office plug-in is simple. You only need to compile the project in Visual Studio 2010.

Normally, you can see this plug-in outlook.

To delete this plug-in, you only need to clear the project in Visual Studio 2010.

 

3. Deploy the project

Since the test phase is so easy, many friends (including me) take it for granted that deployment is certainly easy. Unfortunately, the reality has taught us cruel lessons. You must read the following carefully:Article

Http://msdn.microsoft.com/en-us/library/ff937654.aspx

This article is very important. Please do not skip some steps as soon as possible. I can prove that if you installProgramIs successfully installed.

 

To deploy the project, the target user machine must meet the following conditions:

    • 1. The operating system must be Windows XP SP2 or later. Windows 7 is recommended.
    • 2. Install Office 2007 or office 2010
      • Note that the ". NET programming support" feature must be installed for Office 2007 or office 2010. Note that to install this function, you must first install. NET Framework 2.0. I was surprised by this, but there is no way. This is a prerequisite. However, the good news is:
        • Under normal circumstances, if Windows XP Enables automatic update, it should have installed. NET Framework 2.0
        • By default, Windows 7 comes with. NET Framework 2.0.
    • 3. Install. NET Framework 4.0 client profile or. NET Framework 4.0.
      • Http://go.microsoft.com/fwlink? Linkid = 195254
    • 4. Install Visual Studio 2010 tools for office Runtime
      • Http://www.microsoft.com/download/en/details.aspx? Displaylang = en & id = 20479

 

Sort the above information for your reference.

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.