Otrzymaj swój darmowy Klucz Próbny na 30 dni natychmiast.
Twoja próbna licencja zostanie wysłana na ten adres
Nie wymaga karty kredytowej ani tworzenia konta
Severity: Notice
Message: Trying to access array offset on value of type null
Filename: startfree/index.php
Line Number: 19
Backtrace:
File: /var/www/ironpdf.com/application/views/products/startfree/index.php
Line: 19
Function: _error_handler
File: /var/www/ironpdf.com/application/libraries/Render.php
Line: 88
Function: view
File: /var/www/ironpdf.com/application/libraries/Render.php
Line: 552
Function: view
File: /var/www/ironpdf.com/application/controllers/Products/Startfree.php
Line: 68
Function: render_products_view
File: /var/www/ironpdf.com/index.php
Line: 292
Function: require_once
Severity: Notice
Message: Trying to access array offset on value of type null
Filename: startfree/index.php
Line Number: 21
Backtrace:
File: /var/www/ironpdf.com/application/views/products/startfree/index.php
Line: 21
Function: _error_handler
File: /var/www/ironpdf.com/application/libraries/Render.php
Line: 88
Function: view
File: /var/www/ironpdf.com/application/libraries/Render.php
Line: 552
Function: view
File: /var/www/ironpdf.com/application/controllers/Products/Startfree.php
Line: 68
Function: render_products_view
File: /var/www/ironpdf.com/index.php
Line: 292
Function: require_once
Otrzymaj swój darmowy Klucz Próbny na 30 dni natychmiast.
Twoja próbna licencja zostanie wysłana na ten adres
Nie wymaga karty kredytowej ani tworzenia konta
Przetestuj w produkcji bez znaków wodnych.
Działa tam, gdzie tego potrzebujesz.
Uzyskaj 30 dni pełni funkcjonalnego produktu.
Uruchom w ciągu kilku minut.
Pełny dostęp do naszego zespołu wsparcia technicznego podczas okresu próbnego
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
Przetestuj kod i uruchom go, aby zobaczyc przyklad.