This project has moved and is read-only. For the latest updates, please go here.

Explanation of code in NetOffice Examples

Apr 22, 2013 at 4:52 AM
Hi

I was reviewing the code in the COMAddinExampleTaskPane and was wondering what the following code did in the Addin.vb (and why was it added).
Private Shared ReadOnly _addinOfficeRegistryKey As String = "Software\\Microsoft\\Office\\Word\\AddIns\\"
Private Shared ReadOnly _prodId As String = "WordAddinVB4.TaskPaneAddin"
Private Shared ReadOnly _addinFriendlyName As String = "NetOffice Sample Addin in VB"
Private Shared ReadOnly _addinDescription As String = "NetOffice Sample Addin with custom Task Pane"

Shared _sampleControl As SampleControl
Shared _wordApplication As Word.Application
Apr 23, 2013 at 9:03 AM
Hello,

Try to do Start->regedit.exe

A window will appear, now go to HKEY_CURRENT_USER\Software\Microsoft\Office\Word\AddIns\

If your Add-In was registred correctly, you'll see it there with the parameters
Private Shared ReadOnly _prodId As String = "WordAddinVB4.TaskPaneAddin"
Private Shared ReadOnly _addinFriendlyName As String = "NetOffice Sample Addin in VB"
Private Shared ReadOnly _addinDescription As String = "NetOffice Sample Addin with custom Task Pane"
Hope this will clarify your mind.
Apr 23, 2013 at 11:23 AM
Thanks Mike that makes perfect sense. Although why is it required? I could still build office addins without the lines. What is the advantage in placing in these lines of code
Apr 23, 2013 at 11:27 AM
For information purpose.
Apr 23, 2013 at 12:14 PM
Awesome thanks for the clarification