Spire. Presentation for. NET

Spire. Presentation for. NET

A PowerPoint Compatible Library without Microsoft PowerPoint

This is the list of changelogs of Spire.Presentation New release and hotfix. You can get the detail information of each version's new features and bug solutions.

Free Trail to evaluate Spire.Presentation here:

Hot Fix Version: 5.9.5

Category ID Description
New Feature SPIREPPT-1293 Supports ungrouping the grouped shapes.
GroupShape groupShape = presentation.Slides[0].Shapes[0] as GroupShape;
presentation.Slides[0].Ungroup(groupShape);
New Feature SPIREPPT-1298 Adds "GetPlaceholderShapes" method to get the shapes of layout slide by placeholder.
Placeholder placeholder = presentation.Slides[1].Shapes[0].Placeholder;
IShape[] shapes = presentation.Slides[1].GetPlaceholderShapes(placeholder);
for (int i = 0; i < shapes.Length; i++)
{
        if (shapes[i] is IAutoShape)
        {
            IAutoShape autoShape = shapes[i] as IAutoShape;
            if (autoShape.TextFrame != null)
            {
                Console.WriteLine(autoShape.TextFrame.Text);
            }
        }
} 
New Feature SPIREPPT-1299 Supports the GroupShapes method to return GroupShape object.
ArrayList groupShapeList = new ArrayList();
groupShapeList.Add(shape1);
groupShapeList.Add(shape2);
groupShapeList.Add(shape3);
GroupShape groupshape = ppt.Slides[0].GroupShapes(groupShapeList);
Bug SPIREPPT-1294 Fixes the issue that the application threw "DocumentEditException" when cloning a slide to another file.
Bug SPIREPPT-1301 Fixes the issue that a shape was missing after grouping the shapes.
Bug SPIREPPT-1305 Fixes the issue that the application threw "NullReferenceException" when converting PPTX to HTML.
Bug SPIREPPT-1306 Fixes the issue that the application threw "IndexOutOfRangeException" when loading the PPTX file.
Bug SPIREPPT-1307 Fixes the issue that it caused incorrect chart content after converting PPTX to PDF.
Bug SPIREPPT-1308 Fixes the issue that the application threw the error “Encrypted presentations are not supported” when loading a protected PPT file.

Hot Fix Version: 5.8.5

Category ID Description
New Feature SPIREPPT-1253 Adds "Insert" and "Append" new methods to add section.
Section sect01 = ppt.SectionList.Insert(0, "section1");
Section sect02 = ppt.SectionList.Append("section2");
New Feature SPIREPPT-1253 Supports adding slides to the section, moving and removing slides in the section.
ISlide slide01 = ppt.Slides.Append();
ISlide slide02 = ppt.Slides.Append();

Section section01 = ppt.SectionList.Add("section1", slide01);
Section section02 = ppt.SectionList.Insert(1, "section2");
Section section03 = ppt.SectionList.Append("section3");

//Add slides
ISlide slide03 = ppt.SectionList.InsertSlide(section02, 0, slide01);
ISlide slide04 = section02.Insert(1, slide02);
section02.AddRange(new ISlide[] { slide03, slide04 });

//Move slides 
ppt.SectionList.MoveSlide(section03, 0, slide03); 
section03.Move(1, slide04);

//Remove slides
ppt.SectionList.RemoveSlide(section03, 0);
section01.RemoveAt(0);
section02.RemoveRange(0, 3);
section03.Remove(slide04);
New Feature SPIREPPT-1254 Supports getting the index of the section.
int index1 = ppt.SectionList.IndexOf(section01);
int index2 = section02.Index;
New Feature SPIREPPT-1288 Supports removing sections from PPT files.
ppt.SectionList.RemoveAt(1);
ppt.SectionList.RemoveAll();
Bug SPIREPPT-1251 Fixes the issue that the application threw "NullReferenceException" when loading the file.
Bug SPIREPPT-1256
SPIREPPT-1271
Fixes the issue that add sections to PPT file failed.
Bug SPIREPPT-1267 Fixes the issue that the content was missing after converting PPT to PDF.
Bug SPIREPPT-1272 Fixes the issue that an error prompted when opening the result file after setting the properties for the .potm file.
Bug SPIREPPT-1274 Fixes the issue that the application threw "NullReferenceException" when setting the style of outline lines for newly added SmartArt nodes.
Bug SPIREPPT-1276 Fixes the issue that an error prompted when opening the result file after modifying the chart data of the PPT file.

Hot Fix Version: 5.8.1

Category ID Description
New Feature SPIREPPT-1241 Supports adding sections.
Presentation presentation = new Presentation();
presentation.LoadFromFile(pptfile);
ISlide slide = presentation.Slides[0];
//Add section 
presentation.SectionList.Add("section1", slide);
//Get section
Section section;
String name;
  for (int i = 0; i < presentation.SectionList.Count; i++)
    {
      section  = presentation.SectionList[i];
      name = section.Name;
         foreach (long id in section.SlideIdList)
          {
           }
     }
New Feature SPIREPPT-1236 Supports setting the style of outline lines of the SmartArt node.
ISmartArt smartArt = presentation.Slides[0].Shapes[0] as ISmartArt;
int count =smartArt.Nodes.Count;
ISmartArtNode node;
  for (int i = 0; i < count; i++)
    {
    node = smartArt.Nodes[i];
    node.Line.FillType = FillFormatType.Solid;
    node.Line.SolidFillColor.Color = Color.Gray;
    node.Line.Width = 2;
    }
New Feature SPIREPPT-1237 Supports setting the style of the lines between the SmartArt nodes.
ISmartArt smartArt = presentation.Slides[0].Shapes[0] as ISmartArt;
int count =smartArt.Nodes.Count;
ISmartArtNode node;
  for (int i = 0; i < count; i++)
    {
    node = smartArt.Nodes[i];
    node.LinkLine.FillType = FillFormatType.Solid;
    node.LinkLine.SolidFillColor.Color = Color.Gray;
    node.LinkLine.Width = 2;
    node.LinkLine.DashStyle = LineDashStyleType.SystemDash;
    }
Bug SPIREPPT-1230 Fixes the issue that some content was missing when converting PPT to PDF.

Hot Fix Version: 5.7.2

Category ID Description
Bug SPIREPPT-1107 Fixes the issue that the line position was incorrect when converting PPT to PDF.
Bug SPIREPPT-1214 Fixes the issue that the application threw System.NullReferenceException when loading a PPTX document.
Bug SPIREPPT-1219 Fixes the issue that setting the duration for animation didn't take effect.

Hot Fix Version: 5.6.1

Category ID Description
Bug SPIREPPT-1131 Fixes the issue that the content was incorrect when converting PPT to PDF.
Bug SPIREPPT-1145 Fixes the issue that the application threw an error "Microsoft PowerPoint 2007 file is corrpt" when loading a PPTX document.
Bug SPIREPPT-1162 Fixes the issue that the chart data of the output document could not be accessed after changing the chart data.
Bug SPIREPPT-1166 Fixes the issue that it failed to set the underline of text range.
Bug SPIREPPT-1167 Fixes the issue that the created scatter chart with straight lines had needless markers.
Bug SPIREPPT-1183 Fixes the issue that the application threw System.NullReferenceException when saving to a PPTX document.

Hot Fix Version: 5.4.2

Category ID Description
New feature SPIREPPT-1105 Supports Right-to-left columns.
IAutoShape shape = ppt1.Slides[0].Shapes[0] as IAutoShape;
shape.TextFrame.RightToLeftColumns = true;
New feature SPIREPPT-1106 Supports drawing line segments by the position of two points.
ppt.Slides[0].Shapes.AppendShape(ShapeType.Line, new PointF(10, 10), new PointF(20, 30));
Bug SPIREPPT-1108 Fixes the issue that it failed to open output document when converting PPT to PDF.

Hot Fix Version: 5.2.1

New Features:

  • Supports adding hyperlinks to SmartArt node.
  • if (shape is ISmartArt)
                {
                    //Get the SmartArt  
                    ISmartArt smartArt = shape as ISmartArt;
                    ISmartArtNode node = smartArt.Nodes[0];
                    node.Click = new ClickHyperlink(presentation.Slides[0]);
                    //node.Click = new ClickHyperlink("https://www.e-iceblue.com");
                }
    
  • Supports assigning a unique identifier to each shape when converting PPT to HTML.
  • SaveToHttpResponse method supports PPSX documents.

Bug Fixes:

  • Fixes the issue that chart had extra lines when converting PPT to PDF.
  • Fixes the issue that rotation angle of chart data labels was incorrect when converting PPT to PDF.
  • Fixes the issue that layout of chart lines was incorrect when converting PPT to PDF.
  • Fixes the issue that application threw an error "Not an Open Office presentation" when loading ODP documents.

Hot Fix Version: 5.1

New Features:

  • Supports getting and setting the name of slide.
  • String title = ppt.Slides [0] .Title;
    

Bug Fixes:

  • Fixes the issue that the format was incorrect when converting PPT documents to PDF documents.
  • Fixes the issue that the content position was inconsistent when converting PPT documents to PDF documents.
  • Fixes the issue that the coordinate axis data lost when converting PPT documents to PDF documents.
  • Fixes the issue that the data label position was incorrect when converting PPT documents to PDF documents.
  • Fixes the issue that the rounded rectangle style of the data label was lost when converting PPT documents to PDF documents.

Hot Fix Version: 4.12.13

Bug Fixes:

  • Fixes the issue that the date format was incorrect after the setting chart category axis.
  • Fixes the issue that the content format was incorrect after converting PPT(X) to PDF.
  • Fixes the issue that the color series were incorrect after converting PPT(X) to PDF.
  • Fixes the issue that the exception appeared when adding Html to shapes.
  • Fixes the issue that the rotation of DataLabels didn’t remain after converting PPT(X) to PDF.
  • Fixes the issue that there was the exception "NullReferenceException" when reading the table height.
  • Fixes the issue that there was the exception "IndexOutOfRangeException" when adding Html.
  • Fixes the issue that the content was lost after converting PPT(X) to PDF.

Hot Fix Version: 4.11

New Features:

  • Adds ReplaceFirstText and ReplaceAllText methods to replace text.
  • ReplaceFirstText(string matchedString, string newValue, bool caseSensitive); 
    ReplaceAllText(string matchedString, string newValue, bool caseSensitive);
    
  • Supports setting the rotation angle of the chart title.
  • chart.ChartTitle.TextProperties.RotationAngle=-30;
    
  • Supports highlighting the specified text.
  • IAutoShape shape=ppt.Slides[0].Shapes[0] as IAutoShape
    TextHighLightingOptions options=new TextHighLightingOptions();
    options.CaseSensitive =true;
    options.WholeWordsOnly=true;
    shape.TextFrame.HightLightText("text",Color.Red,options);
    
  • Supports setting the type of the coordinate axis.
  • chart.PrimaryCategoryAxis.AxisType = Spire.Presentation.Charts.AxisType.DateAxis;
    chart.PrimaryCategoryAxis.MajorUnitScale = ChartBaseUnitType.Months;
    
  • Supports setting "until end of slide" for animation timing.
  • effect.Timing.AnimationRepeatType = AnimationRepeatType.UtilEndOfSlide;
    

Bug Fixes:

  • Fixes an issue that loading an encrypted pptx document failed.
  • Fixes an issue that converting PPT containing video to Html failed.
  • Fixes an issue that using the method AddNodeByPosition to insert a new node at the specified SmartArt node location failed.
  • Fixes an issue that copying chart in the same PPT file failed.
  • Fixes an issue that setting additional information in PPT to show or hide failed.
  • Fixes an issue that IsVaryColor property was invalid.
  • Fixes an issue that the size of the table included in the slide also became larger after increasing the size of the slide.