使用 IRONXL 如何在 C# 中開啟 Excel 檔案 Curtis Chau 更新:2026年1月14日 下載 IronXL NuGet 下載 DLL 下載 開始免費試用 法學碩士副本 法學碩士副本 將頁面複製為 Markdown 格式,用於 LLMs 在 ChatGPT 中打開 請向 ChatGPT 諮詢此頁面 在雙子座打開 請向 Gemini 詢問此頁面 在 Grok 中打開 向 Grok 詢問此頁面 打開困惑 向 Perplexity 詢問有關此頁面的信息 分享 在 Facebook 上分享 分享到 X(Twitter) 在 LinkedIn 上分享 複製連結 電子郵件文章 IronXL 讓 C# 開發人員無需安裝 Microsoft Office 即可開啟、讀取和操作 Excel 檔案。 只需使用WorkBook.Load()載入工作簿,存取工作表,並使用類似sheet["A1"]直覺式語法讀取儲存格值。 本教學探討如何在 C# 專案中使用 IronXL 開啟和讀取 Excel 文件,為初級開發人員提供處理 Excel 資料的全面範例和最佳實踐。 IronXL Excel Library是什麼? IronXL是一個 .NET 函式庫,它優先考慮易用性、準確性和速度。 它可以幫助您有效率地開啟、讀取、建立和編輯Excel 文件,而無需 MS Office Interop,因此對於希望在 C# 中使用 Excel 而無需 Interop 的開發人員來說,這是一個實用的選擇。 IronXL 與所有 .NET Framework 以及Linux 、 macOS 、 Docker 、 Azure和AWS相容。 您可以使用它來建立控制台應用程式、Web 應用程式和桌面應用程序,例如Blazor和.NET MAUI,用於開發現代 Web 應用程式。它支援不同的工作簿格式,例如 XLS 和 XLSX 檔案、XSLT 和 XLSM、CSV 和 TSV。 IronXL的主要特色是什麼? 使用LoadSpreadsheets開啟、讀取和搜尋 XLS/XLSX/CSV/TSV 格式的資料。 使用"儲存並匯出"功能將 Excel 工作表匯出為多種格式。 使用安全功能,透過密碼對檔案進行加密和解密。 透過DataSet 集成,將 Excel 工作表作為DataSet和DataTable物件進行操作。 Excel公式自動重新計算,支援數學函數。 使用直覺的範圍語法編輯電子表格數據,例如WorkSheet["A1:B10"] 。 -對儲存格區域、列和行進行排序。 設定儲存格樣式,包括字型、背景、邊框、對齊方式和數字格式。 如何在 C# 中開啟 Excel 檔案? 開始之前我需要準備什麼? 若要在 C# 應用程式中使用 IronXL,請在本機上安裝下列元件: Visual Studio - 用於開發 C# .NET 應用程式的官方 IDE。 您可以從微軟網站下載並安裝 Visual Studio。 您也可以使用JetBrains ReSharper和 Rider 。 有關更多設定指導,請參閱入門概述。 IronXL - 幫助在 C# 中處理 Excel 表格的 Excel 庫。 必須先將其安裝到您的 C# 應用程式中才能使用。 您可以從NuGet 網站下載,也可以從 Visual Studio 中的"管理 NuGet 套件"下載。 您也可以直接下載.NET Excel DLL檔。 有關許可實施,請參閱"使用許可證密鑰" 。 我應該導入哪些命名空間? 安裝 Visual Studio 和 IronXL 後,在 C# 檔案頂部新增以下程式碼行,以新增必要的 IronXL 命名空間: // Add reference to the IronXL library using IronXL; // Add reference to the IronXL library using IronXL; ' Add reference to the IronXL library Imports IronXL $vbLabelText $csharpLabel 要使用特定的 Excel 格式或進階功能,您可能還需要: using IronXL.Formatting; // For cell styling using IronXL.Drawing; // For images and charts using System.Data; // For DataSet/DataTable operations using IronXL.Formatting; // For cell styling using IronXL.Drawing; // For images and charts using System.Data; // For DataSet/DataTable operations Imports IronXL.Formatting ' For cell styling Imports IronXL.Drawing ' For images and charts Imports System.Data ' For DataSet/DataTable operations $vbLabelText $csharpLabel 如何載入現有的Excel檔案? Excel 檔案(也稱為工作簿)由多個工作表組成,每個工作表都包含儲存格值。 要開啟並讀取 Excel 文件,請使用WorkBook類別的Load方法載入它。 LoadSpreadsheets功能支援多種格式。 // Supported Excel spreadsheet formats for reading include: XLSX, XLS, CSV, and TSV WorkBook workbook = WorkBook.Load("test.xlsx"); // You can also load from streams for web applications // using (var stream = File.OpenRead("test.xlsx")) // { // WorkBook workbook = WorkBook.Load(stream); // } // Supported Excel spreadsheet formats for reading include: XLSX, XLS, CSV, and TSV WorkBook workbook = WorkBook.Load("test.xlsx"); // You can also load from streams for web applications // using (var stream = File.OpenRead("test.xlsx")) // { // WorkBook workbook = WorkBook.Load(stream); // } ' Supported Excel spreadsheet formats for reading include: XLSX, XLS, CSV, and TSV Dim workbook As WorkBook = WorkBook.Load("test.xlsx") ' You can also load from streams for web applications ' Using stream = File.OpenRead("test.xlsx") ' Dim workbook As WorkBook = WorkBook.Load(stream) ' End Using $vbLabelText $csharpLabel 這將工作簿初始化為WorkBook實例。 若要開啟特定的WorkSheet ,請從WorkSheets集合中檢索它。 《管理工作表》指南提供了有關工作表操作的更多詳細資訊: // Access the first worksheet in the workbook WorkSheet sheet = workbook.WorkSheets.First(); // Alternative ways to access worksheets WorkSheet sheetByIndex = workbook.WorkSheets[0]; // By index WorkSheet sheetByName = workbook.GetWorkSheet("Sheet1"); // By name // Access the first worksheet in the workbook WorkSheet sheet = workbook.WorkSheets.First(); // Alternative ways to access worksheets WorkSheet sheetByIndex = workbook.WorkSheets[0]; // By index WorkSheet sheetByName = workbook.GetWorkSheet("Sheet1"); // By name ' Access the first worksheet in the workbook Dim sheet As WorkSheet = workbook.WorkSheets.First() ' Alternative ways to access worksheets Dim sheetByIndex As WorkSheet = workbook.WorkSheets(0) ' By index Dim sheetByName As WorkSheet = workbook.GetWorkSheet("Sheet1") ' By name $vbLabelText $csharpLabel 這將存取 Excel 文件中的第一個工作表,以便進行讀取和寫入操作。 ! Excel電子表格,顯示5名員工的數據,包含姓名、職稱和薪資三列,並附有格式化的表頭和儲存格邊框。 Excel 檔案 如何讀取Excel單元格中的資料? Excel 檔案開啟後,即可讀取資料。 使用 IronXL 在 C# 中讀取 Excel 檔案中的資料非常簡單。 您可以使用"選擇範圍"功能指定儲存格參考來讀取儲存格值。 以下程式碼用於取得儲存格的值: // Select the cell using Excel notation and retrieve its integer value int cellValue = sheet["C2"].IntValue; // You can also retrieve values in different formats string textValue = sheet["C2"].StringValue; decimal decimalValue = sheet["C2"].DecimalValue; DateTime dateValue = sheet["C2"].DateTimeValue; bool boolValue = sheet["C2"].BoolValue; // Display the value in the console Console.WriteLine($"Cell C2 contains: {cellValue}"); // Check if cell is empty before reading if (!sheet["C2"].IsEmpty) { Console.WriteLine($"Cell value: {sheet["C2"].Value}"); } // Select the cell using Excel notation and retrieve its integer value int cellValue = sheet["C2"].IntValue; // You can also retrieve values in different formats string textValue = sheet["C2"].StringValue; decimal decimalValue = sheet["C2"].DecimalValue; DateTime dateValue = sheet["C2"].DateTimeValue; bool boolValue = sheet["C2"].BoolValue; // Display the value in the console Console.WriteLine($"Cell C2 contains: {cellValue}"); // Check if cell is empty before reading if (!sheet["C2"].IsEmpty) { Console.WriteLine($"Cell value: {sheet["C2"].Value}"); } ' Select the cell using Excel notation and retrieve its integer value Dim cellValue As Integer = sheet("C2").IntValue ' You can also retrieve values in different formats Dim textValue As String = sheet("C2").StringValue Dim decimalValue As Decimal = sheet("C2").DecimalValue Dim dateValue As DateTime = sheet("C2").DateTimeValue Dim boolValue As Boolean = sheet("C2").BoolValue ' Display the value in the console Console.WriteLine($"Cell C2 contains: {cellValue}") ' Check if cell is empty before reading If Not sheet("C2").IsEmpty Then Console.WriteLine($"Cell value: {sheet("C2").Value}") End If $vbLabelText $csharpLabel 輸出結果如下: ! Microsoft Visual Studio 偵錯控制台視窗顯示已成功從 Excel 儲存格 C2 中提取值"100000",並附有上下文輸出訊息。 讀取 Excel 若要從一系列儲存格讀取數據,請使用循環遍歷指定的範圍。 "選擇 Excel 區域"範例提供了更多模式: // Iterate through a range of cells and display their address and text content foreach (var cell in sheet["A2:A6"]) { Console.WriteLine("Cell {0} has value '{1}'", cell.AddressString, cell.Text); } // Read an entire column foreach (var cell in sheet.GetColumn(0)) // Column A { if (!cell.IsEmpty) { Console.WriteLine($"Column A value: {cell.Text}"); } } // Read an entire row foreach (var cell in sheet.GetRow(1)) // Row 2 { Console.WriteLine($"Row 2 value: {cell.Text}"); } // Iterate through a range of cells and display their address and text content foreach (var cell in sheet["A2:A6"]) { Console.WriteLine("Cell {0} has value '{1}'", cell.AddressString, cell.Text); } // Read an entire column foreach (var cell in sheet.GetColumn(0)) // Column A { if (!cell.IsEmpty) { Console.WriteLine($"Column A value: {cell.Text}"); } } // Read an entire row foreach (var cell in sheet.GetRow(1)) // Row 2 { Console.WriteLine($"Row 2 value: {cell.Text}"); } ' Iterate through a range of cells and display their address and text content For Each cell In sheet("A2:A6") Console.WriteLine("Cell {0} has value '{1}'", cell.AddressString, cell.Text) Next ' Read an entire column For Each cell In sheet.GetColumn(0) ' Column A If Not cell.IsEmpty Then Console.WriteLine($"Column A value: {cell.Text}") End If Next ' Read an entire row For Each cell In sheet.GetRow(1) ' Row 2 Console.WriteLine($"Row 2 value: {cell.Text}") Next $vbLabelText $csharpLabel 存取儲存格區域A2:A6中的每個值並將其列印到控制台。 ! Microsoft Visual Studio 偵錯控制台,帶有語法高亮顯示,顯示讀取 Excel 單元格區域 A2:A6 的輸出,其中包含員工姓名 John、Sara、Peter、Method 和 Katherine。 讀取單元格範圍 有關更詳細的讀寫範例,請查看C# 中的 Excel 讀取教學。 您也可以將 Excel 資料轉換為資料表,以便更輕鬆地進行操作: // Convert worksheet to DataTable for easier data manipulation DataTable dataTable = sheet.ToDataTable(true); // true = first row contains headers // Access data using DataTable methods foreach (DataRow row in dataTable.Rows) { Console.WriteLine($"Employee: {row["Name"]}, Salary: {row["Salary"]}"); } // Convert worksheet to DataTable for easier data manipulation DataTable dataTable = sheet.ToDataTable(true); // true = first row contains headers // Access data using DataTable methods foreach (DataRow row in dataTable.Rows) { Console.WriteLine($"Employee: {row["Name"]}, Salary: {row["Salary"]}"); } ' Convert worksheet to DataTable for easier data manipulation Dim dataTable As DataTable = sheet.ToDataTable(True) ' True = first row contains headers ' Access data using DataTable methods For Each row As DataRow In dataTable.Rows Console.WriteLine($"Employee: {row("Name")}, Salary: {row("Salary")}") Next $vbLabelText $csharpLabel 如何建立新的Excel檔案? IronXL 也方便建立新的工作簿以儲存和擷取資料。 《創建電子表格》指南提供了一個全面的範例。 只需一行程式碼即可建立一個新的 Excel 檔案: // Create a new workbook with the XLSX format WorkBook workBook = new WorkBook(ExcelFileFormat.XLSX); // Alternative: Create with XLS format for compatibility WorkBook xlsWorkBook = new WorkBook(ExcelFileFormat.XLS); // Set workbook metadata workBook.Metadata.Title = "Employee Data"; workBook.Metadata.Author = "Your Name"; workBook.Metadata.Keywords = "employees, salary, data"; // Create a new workbook with the XLSX format WorkBook workBook = new WorkBook(ExcelFileFormat.XLSX); // Alternative: Create with XLS format for compatibility WorkBook xlsWorkBook = new WorkBook(ExcelFileFormat.XLS); // Set workbook metadata workBook.Metadata.Title = "Employee Data"; workBook.Metadata.Author = "Your Name"; workBook.Metadata.Keywords = "employees, salary, data"; ' Create a new workbook with the XLSX format Dim workBook As New WorkBook(ExcelFileFormat.XLSX) ' Alternative: Create with XLS format for compatibility Dim xlsWorkBook As New WorkBook(ExcelFileFormat.XLS) ' Set workbook metadata workBook.Metadata.Title = "Employee Data" workBook.Metadata.Author = "Your Name" workBook.Metadata.Keywords = "employees, salary, data" $vbLabelText $csharpLabel 接下來,建立一個工作表並在其中新增資料。 如需更進階的建立模式,請參閱建立新的 Excel 檔案。 如何在工作簿中新增工作表? // Create a worksheet named "GDPByCountry" in the workbook WorkSheet workSheet = workBook.CreateWorkSheet("GDPByCountry"); // Create multiple worksheets at once WorkSheet sheet2 = workBook.CreateWorkSheet("PopulationData"); WorkSheet sheet3 = workBook.CreateWorkSheet("Summary"); // Copy an existing worksheet WorkSheet copiedSheet = workSheet.CopySheet("GDPByCountryCopy"); // Create a worksheet named "GDPByCountry" in the workbook WorkSheet workSheet = workBook.CreateWorkSheet("GDPByCountry"); // Create multiple worksheets at once WorkSheet sheet2 = workBook.CreateWorkSheet("PopulationData"); WorkSheet sheet3 = workBook.CreateWorkSheet("Summary"); // Copy an existing worksheet WorkSheet copiedSheet = workSheet.CopySheet("GDPByCountryCopy"); ' Create a worksheet named "GDPByCountry" in the workbook Dim workSheet As WorkSheet = workBook.CreateWorkSheet("GDPByCountry") ' Create multiple worksheets at once Dim sheet2 As WorkSheet = workBook.CreateWorkSheet("PopulationData") Dim sheet3 As WorkSheet = workBook.CreateWorkSheet("Summary") ' Copy an existing worksheet Dim copiedSheet As WorkSheet = workSheet.CopySheet("GDPByCountryCopy") $vbLabelText $csharpLabel 這段程式碼會在工作簿中新增一個名為"GDPByCountry"的工作表,讓您可以新增儲存格值。 了解更多關於管理工作表和複製工作表的資訊。 若要為特定儲存格設定值,請使用下列程式碼: // Set the value of cell A1 to "Example" workSheet["A1"].Value = "Example"; // Add different types of data workSheet["A2"].Value = 12345; // Integer workSheet["A3"].Value = 99.99m; // Decimal workSheet["A4"].Value = DateTime.Now; // Date workSheet["A5"].Value = true; // Boolean // Add formulas workSheet["B1"].Formula = "=SUM(A2:A3)"; // Set multiple cells at once using a range workSheet["C1:C5"].Value = "Bulk Value"; // Save the workbook workBook.SaveAs("output.xlsx"); // Set the value of cell A1 to "Example" workSheet["A1"].Value = "Example"; // Add different types of data workSheet["A2"].Value = 12345; // Integer workSheet["A3"].Value = 99.99m; // Decimal workSheet["A4"].Value = DateTime.Now; // Date workSheet["A5"].Value = true; // Boolean // Add formulas workSheet["B1"].Formula = "=SUM(A2:A3)"; // Set multiple cells at once using a range workSheet["C1:C5"].Value = "Bulk Value"; // Save the workbook workBook.SaveAs("output.xlsx"); ' Set the value of cell A1 to "Example" workSheet("A1").Value = "Example" ' Add different types of data workSheet("A2").Value = 12345 ' Integer workSheet("A3").Value = 99.99D ' Decimal workSheet("A4").Value = DateTime.Now ' Date workSheet("A5").Value = True ' Boolean ' Add formulas workSheet("B1").Formula = "=SUM(A2:A3)" ' Set multiple cells at once using a range workSheet("C1:C5").Value = "Bulk Value" ' Save the workbook workBook.SaveAs("output.xlsx") $vbLabelText $csharpLabel 最終輸出結果為: ! Excel 電子表格顯示儲存格 A1 中填入了使用 C# 程式以程式設計方式新增的"範例"文本,同時顯示"按國家/地區劃分的 GDP"工作表標籤,並且儲存格會高亮顯示以指示新增的值。 向單元格添加值 使用不同的Excel格式 IronXL 支援多種 Excel 格式。 以下是如何處理不同文件類型的方法: // Convert between formats WorkBook workbook = WorkBook.Load("data.csv"); workbook.SaveAs("data.xlsx"); // Convert CSV to XLSX // Export to different formats workbook.SaveAsCsv("output.csv", ";"); // CSV with semicolon delimiter workbook.SaveAsJson("output.json"); // Export as JSON workbook.SaveAsXml("output.xml"); // Export as XML // Convert between formats WorkBook workbook = WorkBook.Load("data.csv"); workbook.SaveAs("data.xlsx"); // Convert CSV to XLSX // Export to different formats workbook.SaveAsCsv("output.csv", ";"); // CSV with semicolon delimiter workbook.SaveAsJson("output.json"); // Export as JSON workbook.SaveAsXml("output.xml"); // Export as XML ' Convert between formats Dim workbook As WorkBook = WorkBook.Load("data.csv") workbook.SaveAs("data.xlsx") ' Convert CSV to XLSX ' Export to different formats workbook.SaveAsCsv("output.csv", ";") ' CSV with semicolon delimiter workbook.SaveAsJson("output.json") ' Export as JSON workbook.SaveAsXml("output.xml") ' Export as XML $vbLabelText $csharpLabel 了解更多關於轉換電子表格檔案類型以及如何將 XLSX 轉換為 CSV、JSON、XML 的資訊。 錯誤處理和最佳實踐 處理Excel檔案時,要實作適當的錯誤處理: try { WorkBook workbook = WorkBook.Load("test.xlsx"); WorkSheet sheet = workbook.GetWorkSheet("Sheet1"); // Check if sheet exists if (sheet == null) { Console.WriteLine("Worksheet not found!"); return; } // Process data var value = sheet["A1"].Value; } catch (Exception ex) { Console.WriteLine($"Error reading Excel file: {ex.Message}"); } try { WorkBook workbook = WorkBook.Load("test.xlsx"); WorkSheet sheet = workbook.GetWorkSheet("Sheet1"); // Check if sheet exists if (sheet == null) { Console.WriteLine("Worksheet not found!"); return; } // Process data var value = sheet["A1"].Value; } catch (Exception ex) { Console.WriteLine($"Error reading Excel file: {ex.Message}"); } Imports System Try Dim workbook As WorkBook = WorkBook.Load("test.xlsx") Dim sheet As WorkSheet = workbook.GetWorkSheet("Sheet1") ' Check if sheet exists If sheet Is Nothing Then Console.WriteLine("Worksheet not found!") Return End If ' Process data Dim value = sheet("A1").Value Catch ex As Exception Console.WriteLine($"Error reading Excel file: {ex.Message}") End Try $vbLabelText $csharpLabel 對於生產應用,請考慮設定日誌記錄並實現適當的錯誤處理模式。 我們學到了什麼? 本文示範如何使用 IronXL 在 C# 中開啟和讀取 Excel 文件,例如 XLS 和 XLSX 文件。 IronXL 不需要在系統上安裝 Microsoft Excel 即可執行與 Excel 相關的任務,因此非常適合Docker 部署和Azure 函數。 IronXL 提供了一個全面的 Excel 相關任務程式設計解決方案,包括公式計算、字串排序、修剪、尋找和取代、合併和取消合併、儲存檔案等等。 您也可以設定儲存格資料格式、使用條件格式以及 建立圖表。 若要了解進階功能,請探索分組和取消分組、命名區域、超連結以及保護 Excel 檔案。 完整的API 參考文件提供了所有功能的詳細文件。 IronXL 提供30 天免費試用,並可授權用於商業用途。 IronXL 的 Lite 套餐起價為$799 。 如需更多資源,請造訪教學課程部分或瀏覽常見場景的程式碼範例。 常見問題解答 不使用 Interop,如何在 C# 中開啟 Excel 檔案? 您可以利用 IronXL.Excel 函式庫,在不使用 Interop 的情況下以 C# 開啟 Excel 檔案。使用 WorkBook.Load 方法可將 Excel 檔案載入 WorkBook 範例中,這可讓您存取和處理檔案中的資料。 此 C# Excel 函式庫相容哪些檔案格式? IronXL 支援多種 Excel 檔案格式,包括 XLS、XLSX、CSV 和 TSV。這可讓開發人員在 C# 應用程式中靈活地開啟、讀取和寫入這些格式。 我可以使用這個函式庫在 C# 中編輯 Excel 檔案嗎? 是的,您可以使用 IronXL 編輯 Excel 檔案。載入工作簿後,您可以修改資料、新增工作表,然後將變更儲存回檔案或以各種格式匯出。 我該如何安裝這個函式庫,以便在我的 C# 專案中使用? 若要在您的 C# 專案中安裝 IronXL,您可以使用 Visual Studio 中的 NuGet Package Manager 來新增函式庫。另外,您也可以下載 .NET Excel DLL 並在專案中引用它。 是否可以使用這個函式庫加密 Excel 檔案? 是的,IronXL.Excel 允許您加密和解密 Excel 檔案。您可以使用密碼保護您的 Excel 文件,以在檔案操作時保護敏感資料。 這個函式庫是否支援 Excel 表單中的公式重新計算? IronXL.Excel 支援自動公式重新計算,確保資料的任何變更都會自動更新公式,就像在 Excel 中一樣。 如何使用此庫讀取 Excel 工作表中特定的儲存格值? 若要使用 IronXL 讀取特定的儲存格值,您可以使用 Excel 符號參照儲存格。例如,sheet["A1"].StringValue 將擷取 A1 單元格的字串值。 這個函式庫可以跨不同作業系統使用嗎? 是的,IronXL 與多種作業系統相容,包括 Windows、Linux 和 macOS。它也支援在 Docker、Azure 和 AWS 環境中部署。 與 MS Office Interop 相比,使用此程式庫有何優勢? 與 MS Office Interop 相比,IronXL.Excel 具有多項優勢,例如不需要在系統上安裝 Excel、在伺服器環境中表現更佳,以及易於與現代 .NET 應用程式搭配使用。 這個 C# Excel 函式庫有免費試用版嗎? 是的,IronXL 提供 30 天免費試用,讓您在決定為專案申請商業授權之前,先測試其特色與功能。 Curtis Chau 立即與工程團隊聊天 技術撰稿人 Curtis Chau 擁有電腦科學學士學位(卡爾頓大學),專長於前端開發,精通 Node.js、TypeScript、JavaScript 和 React。Curtis 對製作直覺且美觀的使用者介面充滿熱情,他喜歡使用現代化的架構,並製作結構良好且視覺上吸引人的手冊。除了開發之外,Curtis 對物聯網 (IoT) 也有濃厚的興趣,他喜歡探索整合硬體與軟體的創新方式。在空閒時間,他喜歡玩遊戲和建立 Discord bots,將他對技術的熱愛與創意結合。 相關文章 發表日期 2026年2月15日 如何使用 OleDb vs IronXL.Excel 將 DataTable 匯出至 Excel C# 學習如何使用 OleDb vs IronXL.Excel 將 DataTable 匯出至 Excel C#。 閱讀更多 發表日期 2026年2月15日 如何在未安裝 Office 的情況下使用 IronXL 開啟 VB.NET 中的現有 Excel 檔案 了解如何使用 IronXL for .NET 在未安裝 Office 的情況下在 VB.NET 中開啟現有的 Excel 檔案。 閱讀更多 發表日期 2026年2月15日 C# CSV to XLSX:完整開發人員指南 使用 IronXL 在 C# 中將 CSV 轉換為 XLSX。載入 CSV 檔案、保留資料類型、新增圖表,以及匯出為 Excel 格式,而無需 Microsoft Office 的相依性。 閱讀更多 如何用 C# 讀取 Excel 檔案如何在 Excel 中將表格轉換...
發表日期 2026年2月15日 如何使用 OleDb vs IronXL.Excel 將 DataTable 匯出至 Excel C# 學習如何使用 OleDb vs IronXL.Excel 將 DataTable 匯出至 Excel C#。 閱讀更多
發表日期 2026年2月15日 如何在未安裝 Office 的情況下使用 IronXL 開啟 VB.NET 中的現有 Excel 檔案 了解如何使用 IronXL for .NET 在未安裝 Office 的情況下在 VB.NET 中開啟現有的 Excel 檔案。 閱讀更多
發表日期 2026年2月15日 C# CSV to XLSX:完整開發人員指南 使用 IronXL 在 C# 中將 CSV 轉換為 XLSX。載入 CSV 檔案、保留資料類型、新增圖表,以及匯出為 Excel 格式,而無需 Microsoft Office 的相依性。 閱讀更多