C# Excel 程式庫
超越基本的試算表編輯。獲得對工作簿、公式和圖表的完整控制 針對 .NET 10 而不需 Office Interop。
- 建立 和編輯 Excel 文件、公式、圖表和圖像
- 樣式 單元格、邊框、字體並新增超連結
- 相容 XLSX、XLS、CSV、TSV、XML 和 DataTables
- 免費 30 天試用,全功能,無需信用卡
無需 Interop 即可讀取 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
Dim workBook As WorkBook = WorkBook.Load("sample.xlsx")
' Select worksheet at index 0
Dim workSheet As WorkSheet = workBook.WorkSheets(0)
' Get any existing worksheet
Dim firstSheet As WorkSheet = workBook.DefaultWorkSheet
' Select a cell and return the converted value
Dim 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
' 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)Works with AI Coding Agents
Claude
Codex
GitHub Copilot
Cursor
Antigravity
Other coding agents
Runs Inside Your Infrastructure
No MCPs or external processing. IronXL runs inside your application, keeping documents in your control.
AI-ready Documentation
Clear documentation, API references, and tutorials help coding agents use IronXL effectively.
Built for Enterprise Workflows
Add enterprise-grade document capabilities where accuracy, consistency, and control matters.
跨平台支援
設計用於C#, F#, & VB.NET運行於.NET 10, 9, 8, 7, 6, 5, Core, Standard或Framework
.NET版本:
- C#, VB.NET, F# 語言
- .NET Core (10, 9, 8, 7, 6, 5, and 3.1+)
- .NET Standard (2.0+)
- .NET Framework (4.6.2+)
操作系統和處理器:
- Windows (x64, x86)
- Mac (x64, ARM)
- Linux (x64)
.NET項目型別:
- 網路 (Blazor & WebForms)
- 桌面 (WPF 和 MAUI)
- 控制台 (應用程式和程式庫)
應用環境:
- Windows (10+, Server 2016+)
- Linux (Ubuntu, Debian, CentOS, etc.)
- Mac (macOS 10+)
- Docker (Windows, Linux, Azure)
- Azure (VPS, WebApp, Function)
- AWS (EC2, Lambda)
IDE:
- Microsoft Visual Studio
- JetBrains ReSharper & Rider
二進制認證
- DigiCert簽名二進制文件
一個優先考慮準確性、易用性和速度的 C# Excel 程式庫。
IronXL 是領先的 C# Excel 程式庫,用於在 .NET 中生成和編輯 Excel 文件。其使用者友好的 API 使開發者能夠在幾分鐘內將 Excel 功能新增到 .NET 專案中。
立即獲取您的30天試用金鑰。
您所需要的 Excel API,而無需 Office Interop 煩惱。
用資料工作
為什麼選擇 IronXL
在 C# 中讀取、寫入和編輯 Excel。無需 Office Interop。運行於 Windows、Linux、macOS 和雲端。
寬廣格式支援
- 讀寫 XLS、XLSX、XLSM、XLTX、CSV、TSV。
- 一鍵匯出至 JSON、HTML 和二進制格式。
- 在無需安裝 Office Interop 或 Excel 的情況下進行格式轉換。
5 分鐘內上手
- → 5 分鐘快速入門。
- 簡單 API:
WorkBook.Load(),WorkBook.Create(),worksheet["A1"].Value. - 智能預設值:自動重新計算公式,直觀的
WorkSheet["A1:B10"]範圍語法。
Enterprise 性能
- .NET 10,Core,Standard 或 Framework
- 支援 C#,VB.NET,F#。DigiCert 簽名二進制文件。
- 在任何地方部署:Windows、Linux、macOS、Docker、Azure、AWS、內部部署、氣隙。
準確的資料處理,任何來源
- 本地資料型別:文字、數字、日期、貨幣、公式、百分比。
- 每次編輯時公式會重新計算。完整的數學、排序、篩選、彙總(LINQ 相容)。
- 直接轉換至/從
System.Data.DataSetandDataTable用于資料庫工作流程。
開發者優先支援與授權
- 永久授權:一次購買,永久使用。可選擇更新和續期。
- 24/5 工程師支援( Premium 版提供 24/7)。真人支援,聊天平均回复時間 <1 分鐘。
- 30 天退款保證。不合適?全額退款,無需說明。
為建設者而設
- 您將真正使用的功能:
- 讀寫 XLSX、XLS、CSV
- formula recalculation
- 單元範圍(A1:B10)
- conditional formatting
- 圖表和圖像
- password encryption
- 排序/篩選/彙總
- DataSet/DataTable 轉換
- 凍結窗格,自適應大小
- JSON 和 HTML 匯出
- 每個地方都適用:Windows、Linux、macOS、Docker、Azure、AWS、雲端。
為購買者而設
- 受到超過 2 百萬工程師的信任。2,263,141 次 NuGet 安裝(在功能頁面驗證)。
- 無需 Microsoft Office 或 Excel Interop。
- 提供再分發 / SaaS / OEM 選項。
- 採購友好:永久授權,可選擇續期,可開發票,多種付款選項(包括本地:Amazon Pay、支付寶、Apple Pay、IDEAL、SEPA、ACH)。
- 30 天退款保證。
獲得全球數百萬工程師的信賴
每當開發者提出需求時,我們總會給出肯定的答覆! IronEXCEL
IronXL 是否能在未安裝 Microsoft Office 或 Excel Interop 的情況下讀取、建立及編輯 Excel 檔案?是的!
它是否在單一 API 中原生支援 XLS、XLSX、CSV、TSV 及 JSON 格式?是的!
在資料庫整合方面,Worksheets 與 DataTables/DataSet 物件之間是否有內建轉換功能?是的!
公式能否動態新增、修改及重新計算?是的!
它是否支援包括字型、邊框、對齊方式、背景及數字格式在內的細部樣式設定?是的!
它是否在 Windows、Linux、macOS、Docker 和 Azure 上的 .NET Core、Standard 及 .NET Framework 環境中完全跨平台?是的!
它能開啟、編輯並儲存受密碼保護的試算表嗎?是的!
它是否支援排序、截取、分組和合併等範圍操作?是的!
表格資料能否直接匯出為 XML 和 JSON 格式?可以!
元資料、凍結窗格和列印區域能否透過程式碼進行設定?是的!
是否支援使用標準 Excel 儲存格標記(例如「A1:B10」)進行快速批次編輯?是的!
我現在可以免費在實際專案中測試 IronXL 嗎?是的! 點擊此處開始您的 30 天試用
準備好開始了嗎?
Nuget Downloads 2,263,141|版本:2026.9剛剛發布



