2012-06-05 30 views

回答

0

你會使用Publish功能(http://msdn.microsoft.com/en-us/library/gg649853.aspx),例如:

using Microsoft.Office.Interop.Onenote; 

... 

Application onApp = new Application(); 
string sectionid = "your section id here..."; //could also be a page or notebook id 
string path = "your filepath here..."; //e.g. C:\Users\MyUsername\Documents\hi.xps 
onApp.Publish(sectionid, path, PublishFormat.pfXPS); 
相關問題