15.02.2015 Views

C# 4 and .NET 4

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Building VsTo solutions ❘ OC61<br />

managing application-level add-ins<br />

One of the first things you will find when you create an application-level add-in is that VS carries out all<br />

the steps necessary to register the add-in with the Office application. This means that registry entries are<br />

added so that when the Office application starts, it will automatically locate <strong>and</strong> load your assembly. If<br />

you subsequently want to add or remove add-ins, then you must either navigate through Office application<br />

settings or manipulate the registry manually.<br />

For example, in Word, you must open the Office Button menu, click Word Options, <strong>and</strong> select the Add-Ins<br />

tab, as shown in Figure 49-6.<br />

figure 49-6<br />

Figure 49-6 shows an add-in that has been created with VSTO: WordDocEditTimer. To add or remove addins,<br />

you must select COM Add-Ins in the Manage drop-down (the default option) <strong>and</strong> click the Go button.<br />

The dialog box that appears is shown in Figure 49-7.<br />

figure 49-7<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!