Browse our Products

Aspose.Slides for .NET 26.4 Release Notes

New Features and Improvements

KeySummaryCategoryRelated Documentation
SLIDESNET-45287Accessing IChartSeries.Name.AsCells getter modifies a chartBughttps://docs.aspose.com/slides/net/chart-workbook/
SLIDESNET-45331Embedded Japanese fonts are rendered as garbled text when converting slides to imagesBughttps://docs.aspose.com/slides/net/embedded-font/
SLIDESNET-45345Slide layout ColorMapOverride is not applied to Master slide shapes when renderingBughttps://docs.aspose.com/slides/net/convert-powerpoint-to-png/
SLIDESNET-45328Dashed lines on a chart are displayed incorrectly when converting PPTX to PDFBug
SLIDESNET-45346PptxReadException occurs when loading a PPTX fileBughttps://docs.aspose.com/slides/net/open-presentation/
SLIDESNET-45338Vertical text incorrectly rotated when converting PPTX to PDFBughttps://docs.aspose.com/slides/net/convert-powerpoint-to-pdf/
SLIDESNET-45252PowerPoint → PDF/UA-1: Table header options (Header Row / First Column) not mapped correctlyBughttps://docs.aspose.com/slides/net/convert-powerpoint-to-pdf/
SLIDESNET-45299Converting a shape to an image throws a NullReferenceExceptionBug
SLIDESNET-45251Incorrect List Tag Structure after PowerPoint to PDF Conversion (PDF/UA)Bughttps://docs.aspose.com/slides/net/convert-powerpoint-to-pdf/
SLIDESNET-45302XPS export breaks layoutBug
SLIDESNET-45253PowerPoint → PDF/UA: Paragraph split into multiple

tags

Investigationhttps://docs.aspose.com/slides/net/convert-powerpoint-to-pdf/
SLIDESNET-45329Images cause a presentation to fail to loadBughttps://docs.aspose.com/slides/net/open-presentation/
SLIDESNET-45230WordArt objects are displayed incorrectly when converting PPTX to PDFBughttps://docs.aspose.com/slides/net/convert-powerpoint-to-pdf/#accessibility-and-compliance-standards-for-pdf
SLIDESNET-44132Text layouting is changed when loading and saving a PPT fileBughttps://docs.aspose.com/slides/net/save-presentation/
SLIDESNET-44130Font size is increased when loading and saving a PPT fileBughttps://docs.aspose.com/slides/net/save-presentation/
SLIDESNET-45254PowerPoint → PDF/UA: PAC crash on internal links using Named ActionsBughttps://docs.aspose.com/slides/net/convert-powerpoint-to-pdf/
SLIDESNET-45177Number format of chart data labels changes when converting a slide to an imageBug
SLIDESNET-45307A legacy 16-bit WMF file fails to renderBug

Public API Changes

Added New Enumeration: Aspose.Slides.Charts.WorkbookType

The new WorkbookType enumeration has been added. This enumeration specifies the type of Open XML workbook file.

public enum WorkbookType
{
    /// <summary>
    /// The workbook type is not defined.
    /// </summary>
    NotDefined = -1,

    /// <summary>
    /// Excel workbook (*.xlsx).
    /// </summary>
    Workbook,

    /// <summary>
    /// Excel macro-enabled workbook (*.xlsm).
    /// </summary>
    WorkbookMacro,

    /// <summary>
    /// Excel template (*.xltx).
    /// </summary>
    Template,

    /// <summary>
    /// Excel macro-enabled template (*.xltm).
    /// </summary>
    TemplateMacro,

    /// <summary>
    /// Excel binary macro-enabled workbook (*.xlsb).
    /// </summary>
    WorkbookBinaryMacro
}

Added New Property: IChartData.EmbeddedWorkbookType

The new EmbeddedWorkbookType property has been added to the IChartData interface and ChartData class. It allows you to get the type of the chart embedded workbook.

/// <summary>
/// Gets the type of the embedded workbook.
/// Returns <see cref="WorkbookType.NotDefined"/> if <see cref="DataSourceType"/> is 
/// <see cref="ChartDataSourceType.ExternalWorkbook"/>.
/// Read-only <see cref="WorkbookType"/>.
/// </summary>
WorkbookType EmbeddedWorkbookType { get; }

Usage Example

Aspose.Slides does not support the Excel binary macro-enabled workbook (*.xlsb) format. The following code example shows how to check whether a chart workbook format is supported before working with chart data:

using (var presentation = new Presentation("charts.pptx"))
{
    foreach (var shape in presentation.Slides[0].Shapes)
    {
        if (!(shape is IChart chart))
            continue;

        var chartData = chart.ChartData;

        // Skip charts whose embedded workbook format is not supported.
        if (chartData.DataSourceType == ChartDataSourceType.InternalWorkbook &&
            chartData.EmbeddedWorkbookType == WorkbookType.WorkbookBinaryMacro)
        {
            continue;
        }

        // Read or modify chart workbook data.
        Console.WriteLine(chartData.Series[0].Name.AsCells.GetHashCode());

        var cell = chartData.Series[0].DataPoints[0].Value.AsCell;
        Console.WriteLine(cell.Value);
    }

    presentation.Save("charts-out.pptx", SaveFormat.Pptx);
}