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"的问题。