Programatically convert OneNote sections to XPS -


i need way programatically convert onenote sections files (.one) xps format. know how works excel , word, interop.onenote different. solution?

thanks lot.

you use publish function (http://msdn.microsoft.com/en-us/library/gg649853.aspx), e.g.:

using microsoft.office.interop.onenote;  ...  application onapp = new application(); string sectionid = "your section id here..."; //could page or notebook id string path = "your filepath here..."; //e.g. c:\users\myusername\documents\hi.xps onapp.publish(sectionid, path, publishformat.pfxps); 

Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

javascript - Preserving URL fragment through CAS sign-on -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -