Welcome to MSDN Blogs Sign in | Join | Help

Add a reference to OneNote 2007? No longer under .Net but under COM

There was a change in setup between B2TR and the RTM build where the Office .Net PIAs are no longer placed in the proper place so they appear in the .Net References tab in Visual Studio. What does this mean for you? It means that if you want to add a reference to OneNote you can _no longer_ look under the .Net tab, instead look under the COM tab.

So I would like to amend what the Unknown OneNote blogger mentioned earlier on this post: Referencing the OneNote 2007 APIs in Visual Studio he said this:

  1. Creating a VS .Net references is simple. In a Visual Studio 2005 you can access the references from the Solution Explorer. If the Solution Explorer is not visible you can access it from the View menu or use the shortcut Ctrl-W, S. Figure 1 shows my Visual Studio's Solution Explorer.

Figure 1: VS Solution Explorer

  1. To create a reference to the OneNote interop dll right click the reference node in the Solution Explorer , and select Add Reference to bring up the Add Reference Dialog as shown in Figure 2.

Figure 2: Add Reference Dialog

  1. Select Microsoft.Office.Interop.OneNote and click the Ok button. You should see the reference listed under the Reference node in the Solution Explorer as shown in Figure 3.

Figure 3: VS Solution Explorer with OneNote reference

You can now access the OneNote API. Check back later as we work our way though the OneNote 2007 API.

I am only changing the part under figure 2, but otherwise it all works exactly the same, just a different way to add it. If you have questions please let me know; of course you won't see this until the RTM version comes out.

Thanks a bunch Unknown OneNote blogger!

Published Monday, October 16, 2006 11:58 PM by descapa

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: Add a reference to OneNote 2007? No longer under .Net but under COM

Hmm... I take it then that Office 2007 has RTM'd or the actual issue is too small to allow it to be fixed before it does RTM (I know shipping software with known bugs is odd, but understandable...)

Monday, October 16, 2006 7:35 PM by Sean

# re: Add a reference to OneNote 2007? No longer under .Net but under COM

This ISN'T a bug.  It was a change in how setup was done, the fact that you saw it before was kinda a bug.  My team doesn't own this but from talking with them that is the design to only show up under the COM tab, just like it was in Office 2003.  Clear?  : )

Monday, October 16, 2006 7:43 PM by descapa

# re: Add a reference to OneNote 2007? No longer under .Net but under COM

<a href="http://urlin.it/1a56">replica">http://urlin.it/1a56">replica watches</a>

http://urlin.it/1a56

replica watches

Wednesday, December 20, 2006 3:51 AM by replica watches

# re: Add a reference to OneNote 2007? No longer under .Net but under COM

Monday, February 12, 2007 9:49 AM by replica watches

# re: Add a reference to OneNote 2007? No longer under .Net but under COM

Thursday, February 15, 2007 9:02 PM by replica watches

# re: Add a reference to OneNote 2007? No longer under .Net but under COM

Hi, my name is Jonney, I am from Zaire.

Just like your resource :).

# Good site

<a href= http://index1.blackrom.com >gangbang in public</a>

Thursday, January 03, 2008 2:23 AM by hipnoj

# re: Add a reference to OneNote 2007? No longer under .Net but under COM

Creating a VS .Net references is simple. In a Visual Studio 2005 you can access the references from the Solution Explorer. If the Solution Explorer is not visible you can access it from the View menu or use the shortcut Ctrl-W, S. Figure 1 shows my Visual Studio's Solution Explorer.

Monday, January 28, 2008 11:38 PM by buy replica watches

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker