ONE File Viewer for .NET

ONE file without any dependency over Microsoft OneNote application.


How to View ONE File Using C#

In order to view ONE file, we’ll use

Aspose.Note for .NET

API which is a feature-rich, powerful and easy to use API for C# platform to be used with any Viewer. Open


package manager, search for Aspose.Note and install. You may also use the following command from the Package Manager Console.

Package Manager Console Command

PM> Install-Package Aspose.Note

Steps to View ONE via C#

Aspose.Note makes it easy for the developers to view the one file with just few lines of code.

  1. Load one file with Document class
  2. Call the Document.Save method
  3. Pass output file path & SaveFormat.Html as parameters

System Requirements

Aspose.Note for .NET is supported on all major operating systems. Just make sure that you have the following prerequisites.

  1. Microsoft Windows or a compatible OS with .NET Framework, .NET Core
  2. Development environment like Microsoft Visual Studio
  3. Aspose.Note for .NET referenced in your project

Aspose.Note API handles Microsoft OneNote file formats without Microsoft OneNote dependencies. ONE can easily load, create, modify and convert Microsoft OneNote files. Moreover, ONE can manipulate the elements of OneNote books, render text and images from OneNote file to different formats.


What is a .ONE files

The .one file extension is associated with the Microsoft OneNote application, which is a program with which you can take notes. Notes from the OneNote app can be shared with other users, and you can organize them and perform other actions. Documents associated with this software have the .one extension. It is worth noting that these files can store not only text, but also images, as well as animation and video.

How to read the .ONE file extension?

To read the .one file you need to have special software. it can be either a Microsoft Office 365 package, and you are required to have a Microsoft Office account. Depending on the operating system you are using, be it Mac, Windows or Linux, you may be able to install additional software that will help you open .one files on your PC. But if you work in a corporation or in another institution where additional software cannot be installed on your PC, then the Aspos application will help you. First, it’s free. Secondly, it does not require installation on your PC. All operations for viewing .one files you can do online. And if necessary, you can use our other applications and convert one files to other formats.

Free App to View ONE


C# code to view ONE

string output = System.IO.Path.GetTempPath() + Guid.NewGuid().ToString() + ".html";

// load the OneNote ONE file
var document = new Aspose.Note.Document("");

// create HtmlSaveOptions and set export options
var options = new Aspose.Note.Saving.HtmlSaveOptions()
        ExportCss = Aspose.Note.Saving.Html.ResourceExportType.ExportEmbedded,
        ExportFonts = Aspose.Note.Saving.Html.ResourceExportType.ExportEmbedded,
        ExportImages = Aspose.Note.Saving.Html.ResourceExportType.ExportEmbedded

// save OneNote ONE in HTML format
document.Save(output, options);

// load resultant HTML in default browser

Other Viewer Options