原創|使用教程|編輯:張瑩心|2021-10-29 10:46:09.670|閱讀 271 次
概述:數字筆記通常用于存儲文本、圖片、繪圖等信息。在某些情況下,您可能希望在 OneNote 筆記本中打印筆記。本文介紹如何在 .NET 應用程序中使用 C# 語言打印 OneNote 筆記 ( .one )。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
數字筆記通常用于存儲文本、圖片、繪圖等信息。在某些情況下,您可能希望在 OneNote 筆記本中打印筆記。本文介紹如何在 .NET 應用程序中使用 C# 語言打印 OneNote 筆記 ( .one )。
Aspose.Note for .NET是功能豐富的OneNote文檔處理API,可讓您使用C#或VB.NET以編程方式創建,讀取和轉換OneNote文檔。如果你還沒有用過Aspose.Tasks可以點擊這里下載最新版測試。
// Load input OneNote file with the Document constructor. Document document = new Document("Aspose.one"); // Print the OneNote document. document.Print();
// Load input OneNote file with the Document constructor. Document document = new Document("Aspose.one"); // Specify custom settings for printing PrinterSettings settings = new PrinterSettings(); settings.PrinterName = "Microsoft Print to PDF"; settings.PrintRange = PrintRange.SomePages; settings.FromPage = 2; settings.ToPage = 4; // Set print options for the OneNote file. PrintOptions options = new PrintOptions(); options.PrinterSettings = settings; // Print the OneNote file document.Print(options);
如果你想試用Aspose的全部完整功能,可聯系在線客服獲取30天臨時授權體驗。
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn