Spire.Office 5.11.5

Spire.Office 5.11.5 is released

We're pleased to announce the release of Spire.Office 5.11.5. This version contains many fantastic new features, For instance, Spire.XLS supports adding Subtotal functionality and setting bubble size of Bubble Chart, Spire. Presentation adds a digital signature function and supports setting colors and custom names for Trendline as well as setting the Morph transition type. Meanwhile, a large number of bugs have been fixed by this release. More details are given below.

In this version, the most recent versions of Spire.Doc, Spire.PDF, Spire.XLS, Spire.Presentation, Spire.Email, Spire.DocViewer, Spire.PDFViewer, Spire.Spreadsheet, Spire.OfficeViewer, Spire.DataExport, Spire.Barcode are included.

Dll Versions:

  • Spire.Doc.dll v8.11.15.
  • Spire.Pdf.dll v6.11.10.
  • Spire.XLS.dll v10.11.7.
  • Spire.Email.dll v3.9.1.
  • Spire.DocViewer.Forms.dll v5.1.1.
  • Spire.PdfViewer.Forms.dll v5.11.2.
  • Spire.PdfViewer.Asp.dll v5.11.2.
  • Spire.Presentation.dll v5.11.2.
  • Spire. Spreadsheet v4.10.1.
  • Spire.OfficeViewer.Forms.dll v5.11.5.
  • Spire.Barcode.dll v4.11.0.
  • Spire.DataExport.dll v4.1.9.
  • Spire.DataExport.ResourceMgr.dll v2.1.0.
  • Spire.License.dll v1.3.8
Click the link to get the version Spire.Office 5.11.5:
More information of Spire.Office new release or hotfix:

Here is a list of changes made in this release

Spire.PDFViewer

Category ID Description
Bug SPIREPDFVIEWER-459 Fixes the issue that the font weight is not consistent with the source PDF when viewing in PDFViewer.
Bug SPIREPDFVIEWER-460 Fixes the issue that the application threw the "StackOverflowException" when setting the Dock of PDFViewer as Fill and minimizing the Form.

Spire.PDF

Category ID Description
Bug SPIREPDF-1159 Fixes the issue that the application threw the error "System.ArgumentException" when converting PDF to image.
Bug SPIREPDF-1467 Fixes the issue that the application threw the error "System.ComponentModel.Win32Exception" when printing PDF file.
Bug SPIREPDF-2507 Fixes the issue that PDF couldn't be saved to PS stream and PCL stream.
Bug SPIREPDF-2640
SPIREPDF-2653
Fixes the issue that the result was incorrect when extracting text in the specified rectangular area.
Bug SPIREPDF-3506 Fixes the issue that signature information displayed incorrectly when the result document was opened in Adobe after digitally signing the PDF.
Bug SPIREPDF-3641 Fixes the issue that the content was lost after converting PDF to image.
Bug SPIREPDF-3702 Fixes the issue that the content was incorrect after converting XPS to PDF.
Bug SPIREPDF-3712 Fixes the issue that the content of the generated PDF was incorrect after deleting some pages.
Bug SPIREPDF-3720 Fixes the issue that the application threw the error "ArgumentOutOfRangeException" when drawing string with tab characters.
Bug SPIREPDF-3728 Fixes the issue that it did not find all matches when finding text.
Bug SPIREPDF-3739
SPIREPDF-3743
Fixes the issue that the generated file did not conform to the standard of PDF/A3A after converting PDF to PDF/A3A.
Bug SPIREPDF-3745 Fixes the issue that the content was rotated 180 degrees after converting PDF to TIFF/JPG.
Bug SPIREPDF-3746 Optimizes the time and memory consumed for extracting text.

Spire.XLS

Category ID Description
New Feature SPIREXLS-332 Supports adding Subtotal functionality.
Workbook workbook = new Workbook();
workbook.LoadFromFile(input);
Worksheet sheet = workbook.Worksheets[0];
CellRange range = sheet.Range["A5:D20"];
sheet.Subtotal(range, 0, cols.ToArray(), SubtotalTypes.Sum, true, false, true);
workbook.SaveToFile(output,FileFormat.Version2013);
New Feature SPIREXLS-2869 Supports setting bubble size of Bubble Chart.
chart.Series[0].Format.Options.BubbleScale = x;
New Feature SPIREXLS-2909 Supports adding lines through two points.
//1)Relative location
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];
XlsLineShape line = worksheet.TypedLines.AddLine() as XlsLineShape;
line.LeftColumn = 10; //The column index of the starting point
line.LeftColumnOffset = 10; //The amount of column deviation from the starting point
line.TopRow = 10; //The row index of the starting point
line.TopRowOffset = 10; //The amount of row deviation from the starting point
line.RightColumn = 17; //The column index of the end point
line.RightColumnOffset = 10; //The amount of column deviation from the end point
line.BottomRow = 18; //The row index of the end point
line.BottomRowOffset = 10; //The amount of row deviation from the end point
workbook.SaveToFile("result.xlsx", ExcelVersion.Version2013);
workbook.Dispose();
//2)Absolute location in pixels
Workbook workbook1 = new Workbook();
Worksheet worksheet1 = workbook1.Worksheets[0];
XlsLineShape line1 = worksheet1.TypedLines.AddLine() as XlsLineShape;
line1.StartPoint = new Point(20, 30);
line1.EndPoint = new Point(20, 50);
workbook1.SaveToFile("result2.xlsx", ExcelVersion.Version2013);
workbook1.Dispose();
Bug SPIREXLS-2821
SPIREXLS-2863
Fixes the issue that the content was inconsistent when converting Excel to PDF.
Bug SPIREXLS-2824 Fixes the issue that the pivottable's data was incorrectly updated when converting Excel to PDF.
Bug SPIREXLS-2835 Fixes the issue that the text alignment was changed when converting Excel to PDF.
Bug SPIREXLS-2836 Fixes the issue that the application threw "Remote service access error: (502) the wrong gateway" when loading Excel document.
Bug SPIREXLS-2841 Fixes the issue that the application threw "System.ArgumentOutOfRangeException" when loading Excel.
Bug SPIREXLS-2842 Fixes the issue that the color format was lost when converting Excel to HTML.
Bug SPIREXLS-2846 Fixes the issue that the application threw "System.ArgumentException" when converting xls to xlsx.
Bug SPIREXLS-2850 Fixes the issue that it reported an error when opening the document with MS Excel after adding special symbols.
Bug SPIREXLS-2851 Fixes the issue that the application threw "System.FormateException" when loading xlsm files.
Bug SPIREXLS-2853 Fixes the issue that there was an error when calculating XLOOKUP formula.
Bug SPIREXLS-2854 Fixes the issue that a picture was missing when converting Excel to PDF.
Bug SPIREXLS-2861 Fixes the issue that the legend was changed after modifying the data label.
Bug SPIREXLS-2871 Fixes the issue that the value in the chart was changed after the Excel file generated by Spire.XLS was opened and saved as MS Excel.
Bug SPIREXLS-2902 Fixes the issue that the result Excel document failed to open when using the value "#N/A" to create a chart.
Bug SPIREXLS-2908 Fixes the issue that row height was not automatically adjusted by AutoFitRow() when Excel file has hidden content.
Bug SPIREXLS-2917 Fixes the issue that the application threw "System.StackOverflowException" when converting Excel to Image.
Bug SPIREXLS-2910 Fixes the issue that data was lost when converting charts to pictures.

Spire.Doc

Category ID Description
Bug SPIREDOC-4973 Fixes the issue that the Word file content was incorrect after replacing the bookmark content.
Bug SPIREDOC-4999 Fixes the issue that the application threw the error "System.NullReferenceException" when saving the file after replacing the bookmark content.
Bug SPIREDOC-5003 SPIREDOC-5043 Fixes the issue that the content was incorrect after converting Word to PDF.
Bug SPIREDOC-5063 Fixes the issue that the IF field was not updated correctly when converting Word to PDF.
Bug SPIREDOC-5077 SPIREDOC-5097 Fixes the issue that the application threw the error "IndexOutOfRangeException" when converting Word to PDF.
Bug SPIREDOC-5104 Fixes the issue that the application threw the error when converting Word with SmartArt to PDF/Image/XPS.
Bug SPIREDOC-5107 Fixes the issue that the application threw the error "System.FormatException" when loading the RTF file.
Bug SPIREDOC-5127 Fixes the issue that the content was incorrect when convert Word to PDF after mail merge.
Bug SPIREDOC-5130 Fixes the issue that the content overlapped after converting RTF to Word.
Bug SPIREDOC-5147 Fixes the issue that the application threw the error "System.ArgumentException" when saving the file.
Bug SPIREDOC-5164 Fixes the issue that an error prompted when opening the result file after converting Word to PDF.
Bug SPIREDOC-4807 Fixes the issue that the IF field still existed after merging with empty value.
Bug SPIREDOC-4988 Fixes the issue that the pagination was inconsistent after converting Word to PDF.
Bug SPIREDOC-5062 Fixes the issue that the application threw the error "System.ArgumentException" when accepting the track changes.
Bug SPIREDOC-5114 Fixes the issue that the image border lost after converting Word to PDF.
Bug SPIREDOC-5126 Fixes the issue that failed to fill the MergeField with internal parameters.
Bug SPIREDOC-5136 Fixes the issue that the content format was incorrect after converting Word to PDF.
Bug SPIREDOC-5137 Fixes the issue that the table border lost after converting Word to PDF.
Bug SPIREDOC-5165 Fixes the issue that the two operations (1. Adding content and directly saving to PDF file; 2. Adding content and firstly saving to Word, then saving the Word to PDF) caused different table format.
Bug SPIREDOC-5199 Fixes the issue that after accepting the track changes, the application threw the error "System.ArgumentOutOfRangeException" when saving to PDF file.

Spire. Presentation

Category ID Description
New Feature - Supports digital signature function
//Add digital signature
X509Certificate2 x509 = new X509Certificate2(inputPfx, "e-iceblue");
ppt.AddDigitalSignature(x509, "111", DateTime.Now);
//Remove digital signature
if (ppt.IsDigitallySigned == true) 
{ 
ppt.RemoveAllDigitalSignatures(); 
New Feature SPIREPPT-1342 Supports setting colors and custom names for trend line of chart.
Presentation ppt = new Presentation();
ppt.LoadFromFile(inputFile);
IChart chart = ppt.Slides[0].Shapes[0] as IChart;
ITrendlines trendline = chart.Series[0].TrendLines[0] as ITrendlines;
trendline.displayEquation = false;
trendline.displayRSquaredValue = false;
trendline.Name = "trendlineName";
trendline.Line.FillType = FillFormatType.Solid;
trendline.Line.SolidFillColor.Color = Color.Red;
ppt.SaveToFile(outputFile, FileFormat.Pptx2010);
ppt.Dispose();
New Feature SPIREPPT-1348 Supports setting Morph transition type.
ppt.Slides[0].SlideShowTransition.Type = TransitionType.Morph;
Bug SPIREPPT-1346 Fixes the issue that the application threw DocumentUnknownFormatException when loading PPT file includes external DTD.
Bug SPIREPPT-1360 Fixes the issue that the content is inconsistent when converting PPT to PDF.
Bug SPIREPPT-1366 Fixes the issue that the application threw IndexOutOfRangeException when loading PPT