Spire.Presentation

Spire.Presentation 4.3.14 improves the PrinterSettings interface

We're pleased to announce that Spire.Presentation 4.3.14 is released today. This version enhances the interface of PrinterSettings by adding some new properties, and fixes the issues that occurred when converting PowerPoint to PDF and images. More details are given below.

New Features:

  • Improves PrinterSettings interface.
  • Presentation ppt = new Presentation();
    ppt.LoadFromFile(inputfile);
    PresentationPrintDocument document = new PresentationPrintDocument(ppt);
    //Set print task name
    document.DocumentName = "print task 1"; 
    document.Print0rder = Order.Horizontal; 
    document.SlideFrameForPrint = true; 
    document.GrayLevelForPrint = true;
    document.SlideCountPerPageForPrint = PageSlideCount.Three;
    document.PrinterSettings.PrintRange = PrintRange.AllPages;
    //Set continuous print area
    document.PrinterSettings.PrintRange = PrintRange.SomePages;
    document.PrinterSettings.FromPage = 1;
    document.PrinterSettings.ToPage = ppt.Slides.Count - 1;
    //Set discontinuous print area
    //document.SelectSldiesForPrint("1", "2-6");
    document.PrinterSettings.PrintToFile = true;
    document.PrinterSettings.PrintFileName = outputfile;
    ppt.Print(document);
    ppt.Dispose();
    

Bug Fixes:

  • Fixes an issue that it threw the error "the object reference was not set to the object instance" when copying shape.
  • Fixes an issue that the chart was lost when converting PPT to images.
  • Fixes an issue that the datalabel was incorrect when converting PPT to PDF.
  • Fixes an issue that the the formula from chart datasource was not displayed when saving as a PPT file.
  • Fixes an issue that the legend still existed when converting to PDF after deleting chart legend.
  • Fixes an issue that the images content were incorrect when converting PPT to PDF.

Click the below link to download Spire.Presentation 4.3.14: