Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active August 15, 2022 08:31

Revisions

  1. aspose-com-gists revised this gist Aug 15, 2022. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    You can find more details at: [Convert OneNote to Excel in C#](https://blog.aspose.com/2022/08/04/convert-onenote-to-excel-csharp/)
  2. aspose-com-gists renamed this gist Aug 5, 2022. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. aspose-com-gists created this gist Aug 5, 2022.
    11 changes: 11 additions & 0 deletions OneNote to Excel csharp.cs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    // 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);