Spire.XLS 13.9.1 supports saving shape to image

2023-09-14 01:53:58

We are pleased to announce the release of Spire.XLS 13.9.1. This version supports saving shape to image. What’s more, some known issues are fixed in this version, such as the issue that the data wrapping was incorrect after converting Excel to CSV. More details are listed below.

Here is a list of changes made in this release

Category ID Description
New feature SPIREXLS-4866 Supports saving shape to image.
Workbook workbook = new Workbook();
workbook.LoadFromFile(inputFile);
Worksheet sheet = workbook.Worksheets[0];
//convert shapes to images
SaveShapeTypeOption shapelist = new SaveShapeTypeOption();
//save the shapes in worksheet to images.
shapelist.SaveAll = true;
Dictionary<IShape,Bitmap> images = sheet.SaveAndGetShapesToImage(shapelist);
foreach (KeyValuePair<IShape, Bitmap> pair in images)
{
    IShape shape = pair.Key;
    Bitmap bitmap = pair.Value;
    bitmap.Save(outputFile+shape.Name + "_" + shape.Height + "_" + shape.Width +"_" + shape.ShapeType + ".png");
}
Bug SPIREXLS-4859 Fixes the issue that the data wrapping was incorrect after converting Excel file to CSV.
Bug SPIREXLS-4861 Fixes the issue that the returned result was incorrect after calling "IsPasswordProtected" method.
Bug SPIREXLS-4863 Fixes the issue that there was extra tables after converting Excel to image.
Bug SPIREXLS-4872 Fixes the issue that the application threw "System.Xml.XmlException" when converting Excel to PDF.
Bug SPIREXLS-4874 Optimizes the performance of creating a large Excel file.
Click the link below to download Spire.XLS 13.9.1:
More information of Spire.XLS new release or hotfix: