LINQ Reporting Engine动态书签功能上线!Aspose.Words迎来新年首更

无人久伴 提交于 2020-01-07 00:56:53

【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>>

Aspose.Words for .Net是一种高级Word文档处理API,用于执行各种文档管理和操作任务。API支持生成,修改,转换,呈现和打印文档,而无需在跨平台应用程序中直接使用Microsoft Word。

令人兴奋的是,在2020新年开年之际,.NET版Aspose.Words迎来了新年第一次更新!新增了如下五大新功能:

  • 在脚注中实现了对段落规则的支持。
  • 公开了获取/设置浮动表位置的API。
  • 实现了检查VbaProject是否已签名的功能。
  • 添加了在使用InsertOleObject时插入IconCaption的功能。
  • 支持LINQ Reporting Engine的动态书签插入。

>>你可以点击这里下载Aspose.Words for .NET v20.1测试体验

具体更新内容

key 概述 类别
WORDSNET-12444 支持API检查VBAcode是否已签名 新功能
WORDSNET-12204 添加功能以设置/获取浮动表的位置 新功能
WORDSNET-19648 使用LINQ Reporting Engine创建书签 新功能
WORDSNET-11833 添加功能以在使用InsertOleObject时插入IconCaption 新功能
WORDSNET-19366 在使用InsertOleObject时插入IconCaption的功能 新功能
WORDSNET-18818 使DML图像渲染对具有损坏的SVG扩展名的图像具有弹性 增强功能
WORDSNET-19498 内容已推送到PDF的前一页 增强功能
WORDSNET-11110 表格布局的DOC至PDF转换问题 增强功能

公共API更改

  • 添加了新的公共属性VbaProject.IsSigned
    ////// Shows whether the VbaProject is signed or not.///public bool IsSigned
  • 添加了用于浮动表属性的设置器:RelativeHorizontalAlignment、AbsoluteHorizontalDistanceRelativeVerticalAlignmentAbsoluteVerticalDistance。这些属性允许设置浮动表的位置。可参考下列用例:
    Document doc = new Document("some doc"); Table table = document.FirstSection.Body.Tables\[0\];table.AbsoluteHorizontalDistance = 10; // sets absolute table horizontal position at 10pt.table.RelativeVerticalAlignment = VerticalAlignment.Center; // sets vertical table position to center of entity specified by Table.VerticalAnchor.
  • 添加功能以在使用InsertOleObject时插入IconCaption并更正图标,新的公共方法已添加到DocumentBuilder类中。
    ////// Inserts an embedded or linked OLE object as icon into the document. /// Allows to specify icon file and caption. Detects OLE object type using file extension. //////Full path to the file.////// If true then linked OLE object is inserted otherwise embedded OLE object is inserted.///////// Full path to the ICO file. /// If the value is null or the ICO file is not readable, Aspose.Words will use a predefined image.//////Icon caption.///Shape node containing Ole object and inserted at the current Builder position.public Shape InsertOleObjectAsIcon(string fileName, bool isLinked, string iconFile, string iconCaption)
    用例:
    Document doc = new Document();DocumentBuilder builder = new DocumentBuilder(doc);Shape shape = builder.InsertOleObjectAsIcon("C:\\embedded.xlsx", false, "C:\\icon.ico", "My embedded file");doc.Save("C:\\output.docx");

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!