kourosh saleh

kourosh saleh

  • NA
  • 20
  • 50k

creating smart tag library

Apr 10 2006 4:58 PM
Hi,
I follow exact what this article says about creating a smart tag library, I am using VS 2005 Pro.

http://msdn.microsoft.com/msdnmag/issues/05/02/ManagedSmartTags/default.aspx

but I have following problems and my smart tag does not appiers in Word.

1. I get this Error: The type or namespace name 'SmartTag' does not exist in the namespace 'Microsoft.Office.Interop' (are you missing an assembly reference?) at this row:
using Microsoft.Office.Interop.SmartTag;

I have added a reference to SmartTagLib But i dont get this error if i use VS 2003 .net

2. I did not know exactly what i would write on SmartTagName (URN) i have read some information about it, that it must follow Office convention av namespaceURI#localname but i dont understand what it means.

3. I get this Warning: does not contain any types that can be registered for COM Interop.
I have chosen "Register For Com Interop" on the project's property.
I have added ComVisible(true) on Assembly.
I have registered my classes (Recognizer and Action) manualy on Registery Editor under: HKEY_CURRENT_USER\ Software \ Microsoft \ Office \ Common \Smart Tag

But I can not see my Smart Tag , why ?
How can i test if my smart tag works?