Deployment Improvements in Smart Tags


While you can still register smart tags under HKCU, you can now also register smart tags under HKLM using the same path ”for example, HKLM\Software\Microsoft\Office\Common\Smart Tag. By registering under HKLM, you can make your smart tag available to all users of a computer rather than only the user who installed the smart tag. This registration option makes deploying a smart tag easier when multiple users work on a single machine. Plus, Office copies your smart tag registration from HKLM to HKCU automatically. You can then store customization data for your smart tag for individual users under HKCU.

Disabling Smart Tags for Individual Office Applications

Another addition to smart tag deployment is the ability to disable either a recognizer or an action DLL, depending on the Office application. You can even completely hide your actions or your recognizer in the user interface by setting some DWORD values in the registry keys where your action or recognizer is registered. For example, if you want to hide your smart tag from Word, you can find the CLSID for your recognizer and create a new DWORD value under that CLSID key. The name of the value should be OpusApp , which corresponds to Word's window frame name. You then put in a value of 2. If you simply want to disable your recognizer, you use a value of 1. A value of 0 means that the recognizer is visible and should be enabled.

As for actions, you can only disable or enable them. A DWORD value of 0 enables an action; a value of 1 disables the action. Table 9-13 lists the DWORD names for the Office applications.

Table 9-13: DWORD Names for Office Applications

DWORD

Description

IEFrame

Internet Explorer

OMain

Access

OpusApp

Word

PPFrameClass

PowerPoint

XLMain

Excel

For example, if you want to hide your smart tag from Word, disable it in Excel, and enable it in PowerPoint, you use the following DWORD key names with the following values:

 OpusApp: 2 XLMain: 1 PPFrameClass: 0 



Programming Microsoft Outlook and Microsoft Exchange 2003
Programming MicrosoftВ® OutlookВ® and Microsoft Exchange 2003, Third Edition (Pro-Developer)
ISBN: 0735614644
EAN: 2147483647
Year: 2003
Pages: 227
Authors: Thomas Rizzo

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net