You can find all the details at: Convert OneNote File (.one) to Word Document DOCX or DOC in C#
Last active
September 2, 2021 10:05
-
-
Save aspose-com-gists/fcb444dbca0a7596b3b59050dd522468 to your computer and use it in GitHub Desktop.
Convert or Export OneNote File .one to Word Document DOCX or DOC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Initialize an instance of MemoryStream class. | |
MemoryStream memoryStream = new MemoryStream(); | |
// Load the OneNote .one file using Document class. | |
Aspose.Note.Document oneFile = new Aspose.Note.Document("Aspose.one"); | |
// Export the .one file as PDF | |
oneFile.Save(memoryStream, Aspose.Note.SaveFormat.Pdf); | |
// Load the file using Aspose.PDF Document class. | |
Document file = new Document(memoryStream); | |
// Convert the OneNote .one file as Word DOCX document. | |
file.Save("SaveOutput.docx" , SaveFormat.DocX); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment