Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
 Limitations of Global Templates and...

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
Visual Studio Tools for the Microsoft Office System
Limitations of Global Templates and Add-ins

Document-level customizations for Microsoft Office Word and Microsoft Office Excel might not work correctly as Word global templates or Excel add-ins. If you want to create a solution that runs for every document or workbook that is opened in the application, you should consider creating an application-level add-in.

Word Templates

If a Word template has managed code extensions, the project assembly is not called if the template is attached as a global template or loaded from the Startup directory of Word. In addition, the document does not recognize the format of a template that is part of a Visual Studio Tools for Office solution.

Excel Add-ins (.xla Files)

There is no Visual Studio Tools for Office project for creating an Excel add-in (.xla) file. It is possible to save a workbook as an add-in, but it is not a supported operation and is not recommended. If you save a workbook that has managed code extensions as a Microsoft Office Excel Add-In (*.xla) file, you can select it in the Add-Ins dialog box to apply to another workbook. In some cases your code will run in the target workbook after the add-in is applied, but such use of the Visual Studio Tools for Office solution is not supported.

Application-Level Add-ins

Document-level customizations are specific to a particular document; the code does not run for every document that is opened in the application. If you want to create code that runs for every document or workbook, you can create an application-level add-in by using Microsoft Visual Studio 2005 Tools for the 2007 Microsoft Office System (VSTO 2005 SE). For more information, see Office Solutions Development Overview and Getting Started Programming Application-Level Add-ins.

See Also

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker