D
Dave Mc
Hi,
While using the COM API and using the .NavigateTo(pageID,,) feature, I often
have multiple instances of OneNote open, mostly with different pages selected.
In an attempt to try to detect this situation, I then search for the
currently viewed pages using code similar to:
Dim viewedpages As XmlNodeList = _
xmldoc.SelectNodes("//oneage[@isCurrentlyViewed='true']", nsmgr)
For Each vp As XmlNode In viewedpages
Debug.Print("vp: " & vp.Attributes("name").Value) 'view the nodes
Next
Independent of how many OneNote instances (and pages) I have open, I only
detect a single 'vp' node. Is this the expected behavior? Is it predictable
which node is reported as 'vp' (eg the most recently opened)?
Is there a better construct to use?
Apols that the snippet is in VB.
DaveMc
While using the COM API and using the .NavigateTo(pageID,,) feature, I often
have multiple instances of OneNote open, mostly with different pages selected.
In an attempt to try to detect this situation, I then search for the
currently viewed pages using code similar to:
Dim viewedpages As XmlNodeList = _
xmldoc.SelectNodes("//oneage[@isCurrentlyViewed='true']", nsmgr)
For Each vp As XmlNode In viewedpages
Debug.Print("vp: " & vp.Attributes("name").Value) 'view the nodes
Next
Independent of how many OneNote instances (and pages) I have open, I only
detect a single 'vp' node. Is this the expected behavior? Is it predictable
which node is reported as 'vp' (eg the most recently opened)?
Is there a better construct to use?
Apols that the snippet is in VB.
DaveMc