Opening a notebook using OneNote API

D

dyowee

Good day!

I'm trying to write an add-in for OneNote using the new API. I'm using the
Application.OpenHierarchy() method to open a notebook. The notebook is
opened, but it is only displayed in the Notebooks panel on the left-pane of
OneNote, but it is not selected. I need to click the notebook in the
left-pane to make it the active notebook. Why is this so? Is there a
workaround for this?

Thanks.
 
I

Ilya Koulchin

dyowee said:
I'm trying to write an add-in for OneNote using the new API. I'm using the
Application.OpenHierarchy() method to open a notebook. The notebook is
opened, but it is only displayed in the Notebooks panel on the left-pane of
OneNote, but it is not selected. I need to click the notebook in the
left-pane to make it the active notebook. Why is this so? Is there a
workaround for this?

You can use the NavigateTo method to open a OneNote window if one isn't
opened already, and to navigate to the notebook you just opened.

Ilya
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top