Nevertheless, you can still use the related APIs in projects forĪlso, you can check if your smart tag is present in the AutoCorrect dialog: Please remember that Smart tags are declared deprecated since Office 2010. MsgBox("Recognized text is '" + e.Text + "'!")Ĭhoose the Register Add-in Express Project item in the Build menu, restart Word, and enter words recognizable by your smart tag into a document. Private Sub AdxSmartTagAction1_Click(ByVal sender As System.Object, _īyVal e As ) _ Then add the Click event handler and write your code: To handle the Click event of the action, close the Actions collection editor, and, in the Properties window, select the newly added action. Its Caption property that will become the caption of the appropriate item in the smart tag context menu (see the screenshot below). To specify a new smart tag action, add an item to the Actions collection and set Now you add smart tag actions to the context menu of your smart tag. Specify the phrase(s) recognizable by the smart tag in the RecognizedWords string collection. The value of this property will become a caption of the smart tag context menu. Select the newly added component and, in the Properties window, specify the caption for the added smart tag in theĬaption property. To add a smart tag to your Smart tag library, you use the Add Smart Tag command (see below) that places a new ADXSmartTag component onto the module. In Solution Explorer, right-click the SmartTagModule.vb (or SmartTagModule.cs) file and choose the View Designer popup menu item.Ĭlick the designer surface when you need to set properties of the Smart tag module in the Properties window. The module designer allows setting smart tag properties and adding Smart Tag components to the module.
#Enter tags in document properties word 2016 code#
This is useful when, for example, you need to access a method defined in the module from the code of another class. It returns the current instance of the Smart Tag module. In the code of the module, pay attention to the CurrentInstace property. To review its source code, right-click the file in Solution Explorer and choose View Code in the popup menu. It contains the SmartTagModule class, a descendant of ADXSmartTagModule, which implements the COM interfaces required by the Smart Tag technology and allows managing smart tags. The module is a container for ADXSmartTag components. SmartTagModule.vb (or SmartTagModule.cs) is a smart tag module that is the core part of the smart tag project. The Smart Tag project contains the SmartTagModule.vb (or SmartTagModule.cs) file described in the next step. Do not delete the SmartTagImpl.vb (SmartTagImpl.cs) file required by the Add-inĮxpress implementation of the Smart Tag technology. The solution contains an only project, the smart tag project. The project wizard creates and opens a new solution in Visual Studio. In the window below, choose Generate new or specify an existing. Programming language, this can be either C#, VB.NET or C++:
![enter tags in document properties word 2016 enter tags in document properties word 2016](https://wordaddins.com/wp-content/uploads/properties-link-to-content.png)
In the first wizard window, you choose your
![enter tags in document properties word 2016 enter tags in document properties word 2016](https://cdn.ablebits.com/_img-blog/excel-document-properties/add-custom-property.png)
This starts the Smart tag project wizard. In Visual Studio, open the New Project dialog and navigate to the Extensibility folder.Ĭhoose Add-in Express Smart Tag and click OK. Run Visual Studio via the Run as Administrator command. Make sure that you have administrative permissions before running Visual Studio. Instead, it must be registered for every user separately. In other words, a smart tag cannot be registered for all users on the machine. Per-user smart tagsĪ smart tag is a per-user thing that requires registering in HKCU. Possible actions are to look up additional contact information or send a new email message to that contact. When smart tag recognizes the email address, it allows the user to choose one of the actions associated with the text. An example of such text might be an email address you type into a Word document or an Excel workbook. Smart tags allow recognizing such text using either a dictionary-based Of text in an Office document having custom actions associated with it.
![enter tags in document properties word 2016 enter tags in document properties word 2016](https://www.avantixlearning.ca/wp-content/uploads/2018/03/FieldDialogBoxinMicrosoftWord.png)
This technology provides Office users with more interactivity for the content of their Office documents. Users must trigger recognition and view custom actions associated with text by right-clicking the text and clicking the Additional Actionsīelow is what was said about the Smart Tag technology in earlier days: Word, PowerPoint 2010 and above, these applications do not automatically recognize terms, and recognized terms are no longer underlined.
![enter tags in document properties word 2016 enter tags in document properties word 2016](https://i.stack.imgur.com/U5RsS.png)
Although you can still use the related APIs in projects for Excel, In Office 2010 Microsoft declared smart tags deprecated. Then they added PowerPoint 2003 to the list of smart tag host applications. Smart Tags were introduced in Word 2002 and Excel 2002.