Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active August 15, 2022 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-com-gists/13f6709fe16fdfbfdebab0d42ca6353e to your computer and use it in GitHub Desktop.
Save aspose-com-gists/13f6709fe16fdfbfdebab0d42ca6353e to your computer and use it in GitHub Desktop.
Convert OneNote to Excel XLS XLSX in C#
// 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.
Aspose.Pdf.Document file = new Aspose.Pdf.Document(memoryStream);
// Convert the OneNote .one file as Excel worksheet.
file.Save("SaveOutput.xlsx", Aspose.Pdf.SaveFormat.Excel);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment