程序员开发实例大全宝库

网站首页 > 编程文章 正文

Spire.XLS for .NET新版来袭,新增了设置图表背景色的功能!

zazugpt 2025-05-30 18:51:03 编程文章 9 ℃ 0 评论

Spire.XLS for .NET是一个专业的Excel .NET组件,可用在ASP.NET web站点和Windows Forms的.NET 2.0、3.5或4.0框架应用中。Spire.XLS for .NET提供对象模型Excel API,可加速.NET平台中Excel的设计,通过模板编辑现有Excel文档或转换Excel文件来创建新的Excel文档。

新增

添加新功能来设置图表中的背景色

XlsChartFrameFormat x = chart.Legend.FrameFormat as XlsChartFrameFormat;
x.Fill.FillType = ShapeFillType.SolidColor;
x.ForeGroundColor = Color.White;

为页眉和页脚添加新的选项

//Specify whether the header and footer should scale as you use the "Shrink To Fit" feature on the document.
sheet.PageSetup.ScaleWithDoc 

//Give a different header and footer only for the first page 
sheet.PageSetup.DifferentFirst 

//Specify that odd-numbered pages should have a different header and footer from even-numbered pages.
sheet.PageSetup.DifferentOddEven

添加新的属性来设置线的粗细

(ChartSerie.DataPoints[0].DataFormat.LineProperties as XlsChartBorder).CustomLineWeight;

修复:

  • 修复了把Excel转换为PDF时条件格式不工作的问题
  • 修复了导致文档加载失败的问题
  • 修复了把Excel转换为PDF时内容转换不合适的问题
  • 修复了公式结果渲染错误的问题
  • 修复了把Excel转换为PDF时图像渲染错误的问题

购买最新版Aspose.Email咨询在线客服>,即可拥有最新正版授权!

本站文章除注明转载外,均为本站原创或翻译

Tags:

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表