我们今天发布了Spire.XLS 8.4.6。在该版本中,我们添加了两个新功能,并主要修复了操作Excel文档中出现的一些问题,比如将Excel 转换为PDF, Excel保存为图片等。具体更新内容如下:
新功能:
- 添加了新功能在转换sheet到HTML时指定图片的位置类型。
HTMLOptions opt = new HTMLOptions();
opt.ImageLocationType = ImageLocationTypes.TableRelative;
//opt.ImageLocationType = ImageLocationTypes.GlobalAbsolute;
sheet.SaveToHtml(string fileName, HTMLOptions saveOption);
XlsConditionalFormats xcfs = sheet.ConditionalFormats.Add();
xcfs.AddAverageCondition(AverageType averageType)
xcfs.AddBeginsWithCondition(string text);
xcfs.AddCellValueCondition(ComparisonOperatorType operatorType, double value1, double value2);
xcfs.AddCellValueCondition(ComparisonOperatorType operatorType, string value1, string value2);
xcfs.AddContainsBlanksCondition();
xcfs.AddContainsErrorsCondition();
xcfs.AddNotContainsTextCondition(string text);
xcfs.AddTimePeriodCondition(TimePeriodType timePeriodType);
xcfs.AddTopBottomCondition(TopBottomType topBottomType, int rank);
xcfs.AddUniqueValuesCondition();
问题修复:
- 修复了设置chart.Series[0].DataPoints[0].DataFormat.Percent = 20;不起作用的问题。
- 修复了转换Excel到Pdf出现错误的样式和内容的问题。
- 修复了转换Excel到Pdf不正确的底部图形问题。
- 修复了循环修改单元格的值生成文件大小逐渐增加的问题。
- 修复了使用sheet.ToImage() 转sheet到图片,在本地部分内容丢失,在Azure上内容完全丢失的问题。
- 修复了转换Excel到HTML文本颜色不正确的问题。
- 修复了保存后内容不正确的问题。
- 修复了转换Excel到Pdf单元格填充丢失的问题。
- 修复了合并数据后单元格样式丢失的问题。
- 修复了转换Excel到Pdf内容不正确的问题。
- 修复了改变文本颜色时抛InvaildCastException异常的问题。
- 修复了修改上下标后,后面的文本字体改变的问题。
Welcome to experience Spire.XLS 8.4.6 with downloading here: