A family of Microsoft products that enable users to capture, organize, and reuse notes electronically.
Nothing. Only select objects.
Let me explain:
This question is related to http://answers.microsoft.com/en-us/office/forum/office_2010-onenote/create-a-link-to-several-paragraphs-in-onenote/e7a4124d-6db8-4d47-afb5-5ccea3e08968
This opportunity is very useful for my open source project: http://IStudyBibleTools.com - the Program for independent Bible study.
There is a Bible chapter (the table on OneNote page). Each verse of chapter - is a table cell.
User writes notes while studying the Bible. The program analyzes the user's notes, extracts the Bible references (for example "Genesis 5:6-9") and makes the links from these Bible references. So now when user clicks this link - the OneNote page with this verses will open. But now only first verse will be selected.
What I want to do:
1. Register the Custom Protocol
- Register the Application Handling the Custom Protocol (http://msdn.microsoft.com/en-us/library/aa767914(v=vs.85).aspx)
- Create links like: "isbtlink://pageId=[chapter page id];objectsIds=[verses cells objects ids]"
- When user clicks this link - custom application will handle this click, get the page id and the objects ids, call IApplication.NavigateTo() method and select all verses objects on the opened page.
The problem is that the Bible Notebook is locked. So I need to accomplish this without page xml updating. I think Win32 API or MSAA/UIAutomation - is the right way (here is the example - http://msaaverify.codeplex.com/).
But what methods should I use? First, I need to find the cell object by ObjectId, second, I need to select this object.
Thanks.