
Features of Visual Studio Tools for Office Smart Tags
When you write code for smart tags in a Visual Studio Tools for Office project for Word or Excel, you get IntelliSense, integrated Help, and the other features of Visual Studio. All of the code for the smart tags is in one class; you do not have to create a separate actions class and recognizer class. For more information about the smart tag classes, see Smart Tags Architecture.
Document Scope
Smart tags that you create by using Visual Studio Tools for Office behave differently in document-level projects and application-level projects.
If you create a smart tag in a document-level customization, the smart tag runs only in the document that is part of the customization, not in every open Word or Excel document. This means that you can recognize text that might be too general to recognize if the smart tag is applied to multiple kinds of documents. For example, in an invoice a five-digit number might represent only a product number, but it might represent an employee number in a human resources document. If the smart tag works only in the invoice, you do not need to worry that it will incorrectly recognize and assign actions to an employee number.
Starting in Visual Studio 2008 SP1, you can create a smart tag in an application-level add-in. You can make the smart tag available only to a specific document, or to every document that is opened in Word or Excel (this type of smart tag is also named an application-level smart tag).
Deployment
Visual Studio Tools for Office smart tags are part of the Visual Studio Tools for Office project, so no separate deployment is necessary for them. There is also no need to set security policy specifically for the smart tags; they will run when security is set for the solution.
Registration
You do not need to register the smart tags. Visual Studio Tools for Office registers the smart tags for you, creating one registry entry that includes all the Visual Studio Tools for Office smart tags.