Spire.Office 5.9.2 已正式发布。该版本新增了一些功能,例如:Spire.Presentation支持添加幻灯片到节以及删除节中的幻灯片,Spire.Presentation支持获取节的索引并删除节,Spire.XLS支持隐藏XLSX文档的视图功能。此外,本次更新也修复了PPT/Word/Excel转PDF出现的问题。更多新功能及问题修复详情如下。
该版本涵盖了最新版的Spire.Doc、Spire.PDF、Spire.XLS、Spire.Presentation、Spire.DataExport、Spire.Barcode、Spire.DocViewer、Spire.PDFViewer、Spire.OfficeViewer、Spire.Email。
版本信息如下:
- Spire.Doc.dll v8.9.6
- Spire.Pdf.dll v6.9.6
- Spire.XLS.dll v10.9.5
- Spire.Email.dll v3.6.7
- Spire.DocViewer.Forms.dll v5.1.1
- Spire.PdfViewer.Forms.dll v5.9.0
- Spire.PdfViewer.Asp.dll v5.9.0
- Spire.Presentation.dll v5.9.2
- Spire.Spreadsheet v4.5.0
- Spire.OfficeViewer.Forms.dll v5.9.2
- Spire.Barcode.dll v4.7.0
- Spire.DataExport.dll v4.1.9
- Spire.DataExport.ResourceMgr.dll v2.1.0
- Spire.Common.dll v10.9.5
- Spire.License.dll v1.3.8
https://www.e-iceblue.cn/Downloads/Spire-Office-NET.html
Spire.PDF
问题修复:
- 修复了获取图片时抛出异常”System.ArgumentOutOfRangeExceptio”的问题。
- 修复了提取阿拉伯文本空格丢失的问题。
- 修复了打印pdf文档内容重复的问题。
- 修复了嵌套的grid设置了rowspan(比如grid2.Rows[0].Cells[0].RowSpan = 2)后格式错误的问题。
- 修复了在阿拉伯字符和英文字符混合文档中无法查找到阿拉伯字符的问题。
Spire.Presentation
新功能:
- 新增Insert和Append方法用于添加节。
Section sect01 = ppt.SectionList.Insert(0, "section1");
Section sect02 = ppt.SectionList.Append("section2");
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");
//添加幻灯片
ISlide slide03 = ppt.SectionList.InsertSlide(section02, 0, slide01);
ISlide slide04 = section02.Insert(1, slide02);
section02.AddRange(new ISlide[] { slide03, slide04 });
//移动幻灯片
ppt.SectionList.MoveSlide(section03, 0, slide03);
section03.Move(1, slide04);
//删除幻灯片
ppt.SectionList.RemoveSlide(section03, 0);
section01.RemoveAt(0);
section02.RemoveRange(0, 3);
section03.Remove(slide04);
int index1 = ppt.SectionList.IndexOf(section01);
int index2 = section02.Index;
ppt.SectionList.RemoveAt(1);
ppt.SectionList.RemoveAll();
问题修复:
- 修复了加载文档抛“NullReferenceException”的问题。
- 修复了添加节失败的问题。
- 修复了转换PPT到PDF,内容丢失的问题。
- 修复了给potm文档设置属性后,结果文档打开报错的问题。
- 修复了给新增的SmartArt结点设置轮廓线条样式抛“NullReferenceException”的问题。
- 修复了修改Chart数据后,结果文档打开报错的问题。
Spire.XLS
新功能:
- 支持了可以隐藏.xlsx文档视图的功能(.xls还未支持)
workbook.IsHideWindow = true;
优化:
- 优化了插入行和删除行的时间。
问题修复:
- 修复了转换.xlsx 到 PDF多出边框的问题。
- 修复了转换.xlsx 到 PDF透视表排列顺序不正确的问题。
- 修复了转换.xltx 到PDF内容不正确的问题。
- 修复了取消保护密码时抛异常System.ArgumentOutOfRangeException的问题。
- 修复了设置透视表的数据字段的数据为百分比不起作用的问题。
- 修复了转换.xlsx到PDF内容不正确的问题。
- 修复了转换.xlsx到PDF时抛出"Invalid sectionId of Header Footer image"的问题。
- 修复了加载文档抛出"Data format error. NameRecord"的问题。
- 修复了加载文档抛出"System.ApplicationException Mso Record identification code is wrong(zero). "的问题。
- 修复了.xltm文档和.xltx文档设置文档属性后生成的文件用MS Excel打开失败的问题。
- 修复了转换Sheet到PDF抛出异常"the input string's format is incorrect"的问题。
- 修复了转换.xls到PDF多出内容的问题。
- 修复了加载文档抛出System.FormatException异常。
Spire.Doc
问题修复:
- 修复了转换Word到PDF,内容丢失的问题。
- 修复了转换Word到PDF,页码不正确的问题。
- 修复了加载文档抛"ArgumentException"的问题。
- 修复了转换Word到PDF,图表内容不正确的问题。
- 修复了添加水印设置颜色不生效的问题。
- 修复了转换Word到PDF,表格边框不正确的问题。
- 修复了转换Word到PDF程序挂起的问题。
- 修复了更新Word文档目录后转到PDF内容不正确的问题。
- 修复了转换Word到图片抛"NullReferenceException"的问题。