Enable show report filter pages option in PivotTables and manipulate Excel 95 files using Aspose.Cells for .NET 19.1

Share on FacebookTweet about this on TwitterShare on LinkedIn

Aspose.Cells for .NET logoWe are pleased to announce the release of Aspose.Cells for .NET v19.1, the MS Excel file formats API that provides the ability to create, manipulate, convert or render MS Excel spreadsheets, and more importantly – is fully documented. Please check the document on how to install Aspose for .NET APIs directly from NuGet repository. We have added a few important features and other enhancements while keeping the product more stable and feature rich API. We also included important bug fixes as a part of this release. Moreover, fixing bugs and issues leads us to new enhancements and features which increases our customer base.

Please check the release notes which cover all the new features, enhancements and list of bugs which are resolved in this new version. New features are always introduced while enhancing this product which helps us to compete the ever growing software industry. Exceptions handling empowers the developers to keep control of the applications and assist users in a better way to continue using the application without any interruption. You will get an idea about what is new and what has been enhanced or fixed with this revision of Aspose.Cells for .NET
.

 

Enable show report filter pages option while managing pivot table

MS Excel supports creating PivotTables, adding report filters and enabling “Show Report Filter Pages” option. Aspose.Cells has also provided this support now to enable the “Show Report Filter Pages”option on the created pivot table. As a result of this option the created workbook will contain more worksheets in it. It will split every possible value of report filter in a separate worksheet.

For a working example refer to the following article:

Support for legacy Excel 95/5.0

MS Excel 95 support was not available earlier which was causing issues when using legacy Excel 95/5.0 files. This support is available now and these older file formats  can be used now. For this purpose FileFormatType.Excel95 is introduced which can be used for opening these file formats.

For a working example refer to the following article:

Specify how to cross string in output PDF and image

When cell contains text or string but it is larger than the width of the cell, then the string overflows if the next cell in next column is null or empty. When MS Excel file is saved into PDF/Image, we can control this overflow by specifying the cross type using the TextCrossType enumeration. It has the values TextCrossType.DefaultTextCrossType.CrossKeepTextCrossType.CrossOverride and TextCrossType.StrictInCell. This feature will create similar output as Excel while rendering sheets to PDF and images.

    For a working example refer to the following article:

    Sorting data based on cell background color

    MS Excel provides feature to sort data based on background color. Same feature was required by some users while using Aspose.Cells. This feature is provided now by using DataSorter where SortOnType.CellColor can be used in AddKey method to sort data based on background color. All the cells which contain specified color in the AddKey(), function are placed on top or bottom according to the SortOrder setting and order of the rest of the cells is not changed at all.

    For a working example refer to the following article:

    Using custom functions from Add-in  

    In common scenario, there can be custom formulas that we want to include as an Excel addin. Setting the Cell.Formula value to some function, built-in functions work fine however there can be a need to set the custom functions or formulas using the add-in functions. Aspose.Cells provides features to register add in functions using Worksheets.RegisterAddInFunction method. Afterwards when we set Cell.Formula attribute, the output Excel file shall contain the calculated value from the AddIn function. This feature is available now where an add-in can be registered and function from the newly added add-in can be called.

    For a working example refer to the following article:

      Other Enhancements and Fixes

      There are some other enhancements included and a few exceptions handled in the new release for the users. A few of the worth mentioning features and other improvements are as follows:

      • Detect if generated MHT file is a worksheet or not
      • Handled an exception that raised while converting to the Open Strict XML format
      • Handled an exception when loading an XLSB/XLSX file format
      • Handled an exception while calling Cells.DeleteBlankRows

      In Aspose.Cells 19.1, we fixed several important bugs and other issues. For example, issues around reading/writing MS Excel file formats, using PageSetup options, importing objects into the worksheet, manipulating rows and columns, refreshing and calculating pivot tables, rendering and manipulating charts and shapes, rendering images from Excel worksheets, rendering images files from charts and exporting Excel workbooks to PDF format have been resolved in the release. Moreover, Aspose.Cells formula calculation engine is further improved.

      Changes to the Public API

      The following is a list of any changes made to the public API such as added, renamed, removed or deprecated members as well as any non-backward compatible change made to Aspose.Cells for .NET:

      • Adds PivotTable.ShowReportFilterPageByName (string fieldName) method, shows all the report filter pages according to PivotField’s name, the PivotField must be located in the PageFields.
      • Adds PivotTable.ShowReportFilterPageByIndex(int posIndex) method , shows all the report filter pages according to the position index in the PageFields.

      • Adds PivotTable.ShowReportFilterPage(PivotField pageField) method, shows all the report filter pages according to PivotField, the PivotField must be located in the PageFields.
      • Adds DataSorterKey and DataSorterKeyCollection class , represents the key of the data sorter.
      • Adds DataSorter.AddKey(Int32,SortOnType,SortOrder,Object) method, adds the sort key such as cell’s background color, font color.
      • Adds Aspose.Cells.DataSorter.Keys property, gets all keys of the data sorter.
      • Adds SortOnType enum, represents the type of sorted data.
      • Adds ODSLoadOptions class, represents the options of loading ODS file.
      • Adds HTMLLoadOptions.ProgId property, gets the program id of creating the file. used only for MHT files.
      • Adds PdfSaveOptions.TextCrossType property, gets or sets displaying text type when the text width is larger than cell width.
      • Adds TextCrossType enum class, Enumerates displaying text type when the text width is larger than cell width.
      • Adds WorksheetCollection.RegisterAddInFunction() methods, replacement of Cell.SetAddInFormula(), a more convenient and efficient way for users to add and use addin functions.
      • Obsoletes Cell.SetAddInFormula() method, register the addin functions firstly by WorksheetCollection.RegisterAddInFunction() and then set the formula for Cell by Cell.Formula/Cell.SetFormula() instead.

      Aspose.Cells for .NET Resources

      The resources, you may need to accomplish your tasks: