令人兴奋的是,在2020新年开年之际,.NET版Aspose.Words迎来了新年第一次更新!新增了如下五大新功能,欢迎下载体验。
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转换问题 | 增强功能 |
完整更新细则请参考:【Aspose.Words for .NET v20.1更新说明】
公共API更改
-
添加了新的公共属性VbaProject.IsSigned
////// Shows whether the VbaProject is signed or not.///public bool IsSigned
-
添加了用于浮动表属性的设置器:RelativeHorizontalAlignment、AbsoluteHorizontalDistance、RelativeVerticalAlignment、AbsoluteVerticalDistance。这些属性允许设置浮动表的位置。可参考下列用例:
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");
还想要更多吗可以点击阅读【2019 · Aspose最新资源整合】,查找需要的教程资源。如果您有任何疑问或需求,请随时联系客服,我们很高兴为您提供查询和咨询。
标签:
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!