You can download the latest releases of Aspose.Words from the following links:
Here is a look at just a few of the biggest features in this month’s release. For a full list of bug fixes and improvements please refer to the download pages in the links above.
Insert Embedded or Linked OLE Objects
Aspose.Words now supports insertion of OLE objects such as another Microsoft Word document or an Microsoft Excel chart. A new public method, InsertOleObject, has been introduced in the DocumentBuilder class. This method can be used to insert an embedded or linked OLE object from a file into a Word document.
The following code inserts embedded Excel 97-2003 document as iconic OLE object from stream using predefined image.
Document doc = new Document(); DocumentBuilder builder = new DocumentBuilder(doc); Stream memoryStream = File.OpenRead(MyDir + "Book1.xls"); Shape oleObject = builder.InsertOleObject(memoryStream, "Excel.Sheet.8", true, null); doc.Save(MyDir + @"out.docx");
The following code inserts linked Word document from file as normal OLE object using custom presentation image.
Document doc = new Document(); DocumentBuilder builder = new DocumentBuilder(doc); Image image = Image.FromFile(MyDir + "Aspose.Words.png"); Shape oleObject = builder.InsertOleObject(MyDir + "Doc1.docx", true, false, image); doc.Save(MyDir + @"out.docx");
EUDC Fonts Partial Support Added
Aspose.Words’ rendering engine now partially supports EUDC (End-User-Defined-Characters) fonts. Please find below the description of how EUDC fonts works on Windows (Microsoft Word also seems to follow this logic in general):
In this first implementation, Aspose.Words uses a single EUDC font. When rendering a document to fixed-page formats, this font is searched among the specified font sources by “EUDC” family name.
Best Fit Position of Data Labels in Pie Chart Partially Supported
Starting from Aspose.Words 14.3.0, Best Fit position of data labels in pie charts is partially supported. In previous versions labels with best fit position were rendered as if they had the inside end position. Currently we use a modified Open Office algorithm to set the best fit position of data labels. Here are a few examples:
1. Best fit position of data labels of 2D Pie chart: