spire.xls 11.3.4已发布。该版本支持设置形状顺序,支持操作工作表主题,同时新增了获取冻结窗格单元格范围的功能。此外,该版本增强了转换excel到图片/pdf的功能,并且修复了保存excel文档时出现的问题。详情请阅读以下内容。
新功能:
- 支持设置形状顺序
wb.worksheets[0].pictures[0].changelayer(shapelayerchangetype.bringforward);
wb.worksheets[1].pictures[0].changelayer(shapelayerchangetype.bringtofront);
wb.worksheets[2].pictures[1].changelayer(shapelayerchangetype.sendbackward);
wb.worksheets[3].pictures[1].changelayer(shapelayerchangetype.sendtoback);
//拷贝workbook的theme
workbook.copytheme(srcworkbook);
//设置workbook中默认theme的某一类型颜色
workbook.setthemecolor(themecolortype.accent1, color.blue);
//获取workbook中默认theme的某一类型颜色
color color = workbook.getthemecolor(themecolortype.accent2);
//设置style 为theme color
style.setthemecolor(themecolortype.lt1, 0.1);
//获取style的themecolor(type ,tint)
bool isthemecolor = style.getthemecolor(out themetype, out tint);
sheet.getfreezepanes(out rowindex, out colindex);
问题修复:
- 修复了转换excel到图片,内容不正确的问题
- 修复了转换excel到pdf,字体格式不正确的问题
- 修复了转换excel到pdf, 分页不正确的问题
- 修复了保存excel文档图表格式不正确的问题
- 修复了饼图颜色设置不正确的问题
下载spire.xls 11.3.4请点击: