Information about designing Office add-ins by using the .NET FrameworkArticle ID: 840585 - View products that this article applies to. On This PageINTRODUCTIONMicrosoft Office XP and later versions of Microsoft Office have several
types of add-ins that you can create by using Microsoft Visual Studio .NET. You
can create the following types of add-ins:
MORE INFORMATIONCOM-based add-insCOM add-ins, Automation add-ins, and RTD Servers are types of Office add-ins that are designed around the Component Object Model (COM). COM Interop services are provided by the common language runtime to permit managed code that runs in the .NET environment to communicate with COM servers by using a wrapper between your managed code and the COM server. This wrapper is known as an Interop Assembly (IA).While any number of IAs may exist that describe a particular COM type, only one IA is considered the Primary Interop Assembly (PIA). The PIA contains the official description of the types as defined by the publisher of those types and may also contain certain customizations that make the types easier to use from the managed code. Any IA that is not provided by the publisher of the COM types is considered unofficial and must be avoided. Microsoft provides PIAs for Office XP and for later versions of Office. When you develop a managed code COM-based add-in for Office, you must use the PIA that is provided by Microsoft that matches the version of the target Office application. The Office XP PIAs are designed against the .NET Framework 1.0. The Office XP PIAs are available for download and may be redistributed with your .NET solutions: For more information, click the following article number to view the article in the Microsoft Knowledge Base: 328912 Office 2003 and later versions of Office include PIAs with the Office
Setup program. The Office PIAs may be installed with the Office Setup
program provided that your computer has the .NET Framework 1.1 or a later version of the .NET Framework already
installed. You can distribute the Office PIAs by using the Microsoft
Office Primary Interop Assemblies (PIAs) redistributable.
(http://support.microsoft.com/kb/328912/
)
Microsoft Office XP PIAs are available for download
For more information, click the following article number to view the article in the Microsoft Knowledge Base: 897646 When you develop a managed code Office add-in,
you must know the following information:
(http://support.microsoft.com/kb/897646/
)
Office 2003 Update: Redistributable Primary Interop Assemblies is available for download
Word WLLs and Excel XLLsWord WLLs and Excel XLLs are standard Windows DLLs that implement and export specific methods to extend Word functionality and Excel functionality. Word WLLs and Excel XLLs are based on older CAPI technologies. There have been no enhancements and no documentation updates to Word WLLs since Microsoft Office 97. For Excel, an updated Excel 2007 XLL SDK is available at http://msdn.microsoft.com/en-us/library/bb687883.aspx
(http://msdn.microsoft.com/en-us/library/bb687883.aspx)
. Microsoft has not tested managed code
with these older technologies. Therefore, Microsoft does not recommend using
managed code with a WLL solution or with an XLL solution. Managed code solution types that were introduced in Office 2003Office 2003 introduced several new technologies that target the .NET development environment, as follows:For more information about Visual Studio Tools for Office managed code extensions for Excel and Word, visit the following MSDN Web site: http://msdn2.microsoft.com/en-us/office/aa905533.aspx For more information about managed smart tags, visit the following
Microsoft Web site:
(http://msdn2.microsoft.com/en-us/office/aa905533.aspx)
http://www.microsoft.com/downloads/details.aspx?familyid=c6189658-d915-4140-908a-9a0114953721 For more information about managed smart documents, visit the
following Microsoft Web site:
(http://www.microsoft.com/downloads/details.aspx?familyid=c6189658-d915-4140-908a-9a0114953721)
http://www.microsoft.com/downloads/details.aspx?FamilyId=24A557F7-EB06-4A2C-8F6C-2767B174126F Microsoft Office Professional Edition 2003, Microsoft Office Word
2003, and Microsoft Office Excel 2003 include a loader that is designed
specifically to load managed-code extensions, managed smart tag solutions, and
managed smart document solutions.
(http://www.microsoft.com/downloads/details.aspx?FamilyId=24A557F7-EB06-4A2C-8F6C-2767B174126F)
REFERENCES
For more information, click the following article numbers to view the articles
in the Microsoft Knowledge Base: 311452
(http://support.microsoft.com/kb/311452/
)
Develop Microsoft Office solutions with Visual Studio .NET
830519 For more information about Microsoft Office
development with Visual Studio, visit the following MSDN Web site:
(http://support.microsoft.com/kb/830519/
)
BUG: Cancel parameter for Office events is ignored in Visual Studio .NET 2003
http://msdn2.microsoft.com/en-us/library/aa188489(office.10).aspx
(http://msdn2.microsoft.com/en-us/library/aa188489(office.10).aspx)
PropertiesArticle ID: 840585 - Last Review: April 5, 2010 - Revision: 6.0 APPLIES TO
|
|