跳至页脚内容
IronXL标志 适用于.NET

立即开始您的IronXL
免费试用

  • 创建和编辑Excel文件公式、图表和图像
  • 设置单元格样式、边框、字体并添加超链接
  • 兼容XLSX, XLS, CSV, TSV, XML和DataTables
  • 免费30天试用,完整功能,无需信用卡
Trial key

立即获取您的免费30 天试用密钥

试用许可证将发送到此地址

Check icon 无需信用卡或创建账户

Test Icon

在实际环境中测试

在生产环境中测试,没有水印。
在您需要的地方使用。

Functional Icon

功能齐全的产品

使用功能齐全的产品30天。
几分钟内即可启动和运行。

Support Icon

24/5 技术支持

在产品试用期间,全面访问我们的支持工程团队

无须互操作加载Excel文件
using IronXL;
using System;
using System.Linq;

// Supported for XLSX, XLS, XLSM, XLTX, CSV and TSV
WorkBook workBook = WorkBook.Load("sample.xlsx");

// Select worksheet at index 0
WorkSheet workSheet = workBook.WorkSheets[0];

// Get any existing worksheet
WorkSheet firstSheet = workBook.DefaultWorkSheet;

// Select a cell and return the converted value
int cellValue = workSheet["A2"].IntValue;

// Read from ranges of cells elegantly.
foreach (var cell in workSheet["A2:A10"])
{
    Console.WriteLine("Cell {0} has value '{1}'", cell.AddressString, cell.Text);
}

// Calculate aggregate values such as Min, Max and Sum
decimal sum = workSheet["A2:A10"].Sum();

// Linq compatible
decimal max = workSheet["A2:A10"].Max(c => c.DecimalValue);
Imports IronXL
Imports System
Imports System.Linq

' Supported for XLSX, XLS, XLSM, XLTX, CSV and TSV
Private workBook As WorkBook = WorkBook.Load("sample.xlsx")

' Select worksheet at index 0
Private workSheet As WorkSheet = workBook.WorkSheets(0)

' Get any existing worksheet
Private firstSheet As WorkSheet = workBook.DefaultWorkSheet

' Select a cell and return the converted value
Private cellValue As Integer = workSheet("A2").IntValue

' Read from ranges of cells elegantly.
For Each cell In workSheet("A2:A10")
	Console.WriteLine("Cell {0} has value '{1}'", cell.AddressString, cell.Text)
Next cell

' Calculate aggregate values such as Min, Max and Sum
Dim sum As Decimal = workSheet("A2:A10").Sum()

' Linq compatible
Dim max As Decimal = workSheet("A2:A10").Max(Function(c) c.DecimalValue)
Install-Package IronXL.Excel

探索代码并运行以查看示例。

一流的工程,
24小时支持
  • Support Team Member 2 related to 立即开始您的IronXL 
免费试用
  • Support Team Member 4 related to 立即开始您的IronXL 
免费试用
  • Support Team Member 6 related to 立即开始您的IronXL 
免费试用
  • Support Team Member 7 related to 立即开始您的IronXL 
免费试用
  • Support Team Member Iron related to 立即开始您的IronXL 
免费试用
联系专家

钢铁支援团队

我们每周 5 天,每天 24 小时在线。
聊天
电子邮件
打电话给我