Microsoft KB Archive/300950

= How to troubleshoot custom Smart Tags in Office =

Article ID: 300950

Article Last Modified on 4/13/2007

-

APPLIES TO


 * Microsoft Excel 2002 Standard Edition
 * Microsoft FrontPage 2002 Standard Edition
 * Microsoft Outlook 2002 Standard Edition
 * Microsoft PowerPoint 2002 Standard Edition
 * Microsoft Word 2002 Standard Edition
 * Microsoft Visual Studio 6.0 Enterprise Edition
 * Microsoft Visual Studio 6.0 Service Pack 1
 * Microsoft Visual Studio 6.0 Service Pack 4
 * Microsoft Visual Studio 6.0 Service Pack 5
 * Microsoft Office Excel 2003
 * Microsoft Office FrontPage 2003
 * Microsoft Office Outlook 2003
 * Microsoft Office PowerPoint 2003
 * Microsoft Office Publisher 2003
 * Microsoft Office Word 2003
 * Microsoft Office Professional Edition 2003
 * Microsoft Office Standard Edition 2003
 * Microsoft Office Student and Teacher Edition 2003
 * Microsoft Office Small Business Edition 2003
 * Microsoft Office Basic Edition 2003
 * Microsoft Office Access 2003
 * Microsoft Office Outlook 2007
 * Microsoft Office Excel 2007
 * Microsoft Office PowerPoint 2007
 * Microsoft Office Publisher 2007
 * Microsoft Office Word 2007
 * Microsoft Office SharePoint Designer 2007
 * Microsoft Office Access 2007
 * Microsoft Office Basic 2007
 * Microsoft Office Enterprise 2007
 * Microsoft Office Home and Student 2007
 * Microsoft Office Professional 2007
 * Microsoft Office Professional Plus 2007
 * Microsoft Office Small Business 2007
 * Microsoft Office Standard 2007
 * Microsoft Office Ultimate 2007

-



This article was previously published under Q300950



Important This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry

IN THIS TASK
SUMMARY The Smart Tag Does Not Work in One or More Office Programs The Smart Tag is Not Listed in the Recognizers List
 * An Office Program Was Running when the Smart Tag was Registered
 * The Security Settings Are Too Restrictive
 * The Smart Tag Dynamic Link Library Stopped Responding
 * Registration of the Smart Tag DLL is Invalid

Re-Register the Smart Tag DLL REFERENCES



SUMMARY
This article describes how to troubleshoot a custom-created smart tag that does not work as you expect.

Smart tag technology gives Microsoft Office programs the ability to recognize data that you enter. Office then offers on-the-spot access to actions that relate to that data. To develop smart tags, you can use Microsoft Visual Basic for Applications or Microsoft Visual C++ or Extensible Markup Language (XML).

back to the top

The Smart Tag Does Not Work in One or More Office Programs
Verify that the recognizer is being loaded by Microsoft Word or Microsoft Excel. To do this, follow these steps:
 * 1) Start Microsoft Office Word 2007 or Microsoft Office Excel 2007.
 * 2) Click the Microsoft Office Button, and then click Word Options or Excel Options.
 * 3) Click the Proofing tab, and then click AutoCorrect Options.
 * 4) Click the Smart Tags tab.
 * 5) Verify that the Label text with smart tags check box is selected and that your smart tag is both listed and selected in the Recognizers list.


 * 1) Start Microsoft Word 2002 or Microsoft Office Word 2003.
 * 2) On the Tools menu, click AutoCorrect Options.
 * 3) Click the Smart Tags tab.
 * 4) Verify that the Label text with smart tags check box is selected and that your smart tag is both listed and selected in the Recognizers list.
 * 5) Start Microsoft Excel 2002 or Microsoft Office Excel 2003, and repeat steps 2 through 4.

Note In step 4, the check box is labeled Label data with smart tags.

back to the top

The Smart Tag Is Not Listed in the Recognizers List
This behavior can occur for the following reasons.

back to the top

An Office Program Was Running When the Smart Tag Was Registered
As long as one instance of Word or Excel is open, there is the potential that the smart tag will not be registered correctly with the Office programs. Outlook used with WordMail keeps an instance of Word open, so you must also quit Outlook when you install smart tags. Finally, Microsoft Internet Explorer may interfere with the installation if you browse to a page that contains smart tags.

back to the top

The Security Settings Are Too Restrictive
Smart tags cannot run if they are unsigned and if your security settings are set too restrictively. To verify your security settings in Office, follow these steps:
 * 1) Start Word 2007 or Excel 2007.
 * 2) Click the Developer tab, and then click Macro Security in the Code group.
 * 3) Click the Add-ins tab, and then verify that the Require Application Add-ins to be signed by Trusted Publisher check box is not selected.

Note Alternatively, you can click the Macro Settings tab, and then click to select the Disable all macros with notification option.


 * 1) Start Word 2002 or Word 2003.
 * 2) On the Tools menu, point to Macro, and then click Security.
 * 3) Click the Trusted Sources tab.
 * 4) Verify that the Trust All Installed Add-ins and Templates check box is selected.

Note Alternatively, you can use the Security Levels tab to set your security level to Medium.
 * 1) Click OK, and then quit Word.
 * 2) Repeat this process in Microsoft Excel.

back to the top

The Smart Tag Dynamic Link Library Stopped Responding
To find out whether your smart tag dynamic link library (DLL) has stopped responding and is disabled, follow these steps. Warning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.  Click Start, click Run, type regedit in the Open dialog box, and then click OK. In the Registry Editor, locate the Status value under the following key in the registry:

HKEY_CURRENT_USER\Software\Microsoft\Office\Common\Smart Tag\Recognizers\

Note The preceding registry key is one path; it has been wrapped for readability.

 If the Status value is set to a decimal value of 1, your smart tag DLL crashed and is deactivated. If the Status value is set to a decimal value of 8, the DLL is deactivated in Microsoft Word. If the Status value is set to a decimal value of 16, the DLL is deactivated in Microsoft Excel. Select the Status subkey. On the Edit menu, click Delete. When you are prompted to confirm deletion of the value, click Yes. Quit the Registry Editor.

After you delete the Status value, start Word and Excel to reload the smart tag. In each program, point to AutoCorrect Options on the Tools menu, and then click the Smart Tags tab. Does your smart tag load correctly? If not, verify the Status value in the Registry Editor again to determine whether the DLL is disabled. If the Status value shows that the DLL is again disabled, there is a problem with the DLL code.

back to the top

Registration of the Smart Tag DLL is Invalid
If you registered the smart tag DLL in the registry by using a Class ID (CLSID) that was generated by Visual Basic for Applications, it is possible that your DLL's Global Unique Identifier (GUID) has changed. This is because the generation of GUIDs in Visual Basic for Applications is determined by your project's compatibility settings. To verify your project's compatibility settings, follow these steps:
 * 1) Start Microsoft Visual Basic for Applications.
 * 2) On the Project menu, click   Properties, and then click the Component tab.
 * 3) In the Version Compatibility box, view the setting that is selected for your project. If No Compatibility is selected, a new CLSID is generated each time the DLL is compiled.
 * 4) Change this setting to either Project Compatibility or Binary Compatibility.

After you update the compatibility settings for the Visual Basic for Applications project, you must re-register the DLL on the computer. The following section describes how to re-register a DLL.

back to the top

Re-Register the Smart Tag DLL
To ensure a clean registration of the smart tag DLL, follow these steps:
 * 1) Click Start, click Run, type regsvr32 /u  in the Open dialog box, and then click OK.

In this example,  is the location and file name associated with your smart tag DLL. This unregisters the DLL on the computer.
 * 1) Copy the file to a new location.
 * 2) Click Start, click Run, type regsvr32  in the Open dialog box, and then click OK.

back to the top

