Showing posts with label OneNote. Show all posts
Showing posts with label OneNote. Show all posts

Monday, December 6, 2010

OneNote Publish to PDF

Microsoft.Office.Interop.OneNote Publish. To publish the entire notebook, use the code below, where Personal is the name and folder of my notebook. The Publish action will find all the .one files and combine them into one pdf file. Whammooo!!

var onenoteApp = new Microsoft.Office.Interop.OneNote.Application();

string bstrHierarchyID = string.Empty;
onenoteApp.OpenHierarchy(@"C:\Users\brad.test\Documents\OneNote Notebooks\Personal\",
System.String.Empty, out bstrHierarchyID, Microsoft.Office.Interop.OneNote.CreateFileType.cftNone);

string bstrTargetFilePath = "C:\\Temp\\Personal1.pdf";

onenoteApp.Publish(bstrHierarchyID, bstrTargetFilePath, OneNote.PublishFormat.pfPDF);

Wednesday, August 27, 2008

OneNote Web Exporter - Display OneNote on SharePoint

This free add-on to OneNote gives the user the ability to export a web page view of a OneNote document. You can even export it to SharePoint and use a page view web part to host the webview.html page within a SharePoint site.

http://www.codeplex.com/ONWebber

This add-on sure beats my Word2OneNote.

Even better idea, create a Shared Notebook that is stored on SharePoint, export this Notebook to the same SharePoint library. Now multiple users can open and edit the Notebook and export it back to update the web page.

Hmmm.... wonder how concurrent updates are dealt with?