编程语言
首页 > 编程语言> > 支持LINQ Reporting Engine动态书签!Aspose.Words迎来新年首更

支持LINQ Reporting Engine动态书签!Aspose.Words迎来新年首更

作者:互联网

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

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

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

  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转换问题 增强功能添加了新的公共属性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 positionlic Shape InsertOleObjectAsIcon(string fileName, bool isLinked, string iconFile, string iconCaption)

  用例:

  Document doc=new Document();DocumentBuilder builder=new DocumentBuilder(doc);Shape shape=build

标签:Engine,功能,object,Reporting,LINQ,添加,file,table,WORDSNET
来源: https://www.cnblogs.com/ebuybay/p/15869068.html