Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Friends,
i want to read data from onenote file('.one') in WPF application. i have some code but in this code i get some com related problem
Code:

C#
static void GetEntireHierarchy()
      {
         String strXML;
         OneNote.ApplicationClass onApplication = new OneNote.ApplicationClass();
         onApplication.GetHierarchy(null,
                  OneNote.HierarchyScope.hsPages, out strXML);
         Clipboard.SetText(strXML);
         MessageBox.Show("The XML has been copied to the clipboard");
      }


Ref:
https://msdn.microsoft.com/library/ms788684(v=office.12)[^]
Posted
Comments
Richard MacCutchan 2-May-15 5:11am    
i get some com related problem

Sorry, but you cannot expect people to guess what that problem may be.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900