OneNote文件处理控件Aspose.Note功能演示:使用 C# 打印 OneNote .one NoteBook 文件

数字笔记通常用于存储文本、图片、绘图等信息。在某些情况下,您可能希望在 OneNote 笔记本中打印笔记。本文介绍如何在 .NET 应用程序中使用 C# 语言打印 OneNote 笔记 ( .one )。

数字笔记通常用于存储文本、图片、绘图等信息。在某些情况下,您可能希望在 OneNote 笔记本中打印笔记。本文介绍如何在 .NET 应用程序中使用 C# 语言打印 OneNote 笔记 ( .one )。

OneNote文件处理控件Aspose.Note功能演示:使用 C# 打印 OneNote .one NoteBook 文件

Aspose.Note for .NET是功能丰富的OneNote文档处理API,可让您使用C#或VB.NET以编程方式创建,读取和转换OneNote文档。如果你还没有用过Aspose.Tasks可以点击这里下载最新版测试。

OneNote 笔记本打印机 – C# API 安装

您可以使用Aspose.Note for .NET API在 OneNote Notebook 中创建、编辑或操作笔记。

使用 C# 打印 OneNote Notebook .one 文件

您可以按照以下步骤轻松打印 OneNote .one 文件:

  • 使用Document类加载输入 OneNote .one 文件。
  • 使用打印功能打印 OneNote 笔记本。

下面的代码解释了如何使用 C# 以编程方式打印 OneNote .one Notebook:

// Load input OneNote file with the Document constructor.Document document = new Document("Aspose.one");// Print the OneNote document.document.Print();

使用 C# 中的高级选项打印 OneNote Notebook .one 文件

在某些情况下,您可能需要使用特定的打印选项打印 .one 格式的 OneNote 文件。以下步骤详细阐述了.one格式文件的定制打印:

  • 使用Document类加载输入 OneNote 文件。
  • 设置打印机名称和页面范围。
  • 最后,使用Print()方法打印 .one 文件。

以下代码显示了如何使用 C# 打印 OneNote .one 文件:

// Load input OneNote file with the Document constructor.Document document = new Document("Aspose.one");// Specify custom settings for printingPrinterSettings 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 filedocument.Print(options);

如果你想试用Aspose的全部完整功能,可联系在线客服获取30天临时授权体验。


还想要更多吗可以点击阅读【Aspose最新资源在线文库】查找需要的教程资源。如果您有任何疑问或需求,请随时加入Aspose技术交流群(),我们很高兴为您提供查询和咨询


标签:

来源:慧都

声明:本站部分文章及图片转载于互联网,内容版权归原作者所有,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2021年9月26日
下一篇 2021年9月26日

相关推荐

发表回复

登录后才能评论