by
426 17
5
10
6,779
1
Top 1% !
Popular
Famous
Pearl of Wisdom
Nice
Tagged
Easy-to-find
SEO Idyll
Specified
OpenSource
Popularity: 964th place

Published on:

.NETFramework4.5
LanguageC++
LicenseMIT_X11

Save Microsoft OneNote (.one) file as an image (.PNG, .BMP, .JPEG, .GIF) file in C#/.NET

The Aspose.Note for .NET API allows developers to open files & manipulate elements of OneNote books & export them to PNG, GIF, JPEG, BMP and PDF formats. The following code sample shows developers how to save OneNote File as an image in C#/.NET
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/36441/Save-Microsoft-OneNote-(-one)-file-as-an?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
// Load the document into Aspose.Note. Document oneFile = new Document(@"FullFileName.one"); // Save the document as GIF. oneFile.Save("FullFileName.gif", SaveFormat.Gif); OR // Load the document into Aspose.Note. Document oneFile = new Document(@"FullFileName.one"); // Initialize ImageSaveOptions object ImageSaveOptions opts = new ImageSaveOptions(SaveFormat.Png); // Set page index opts.PageIndex = 1; // Save the document as PNG. oneFile.Save(@"FullFileName.png", opts);
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus