« Excel et CSharp avec EPPlus » : différence entre les versions
Apparence
Aucun résumé des modifications |
|||
Ligne 1 : | Ligne 1 : | ||
[[Category: | [[Category:.NET Application]] | ||
= Liens = | = Liens = | ||
* [https://github.com/EPPlusSoftware/EPPlus EPPlus 5 on GitHub] | * [https://github.com/EPPlusSoftware/EPPlus EPPlus 5 on GitHub] |
Dernière version du 12 mars 2023 à 09:32
Liens
Bases
ExcelPackage.LicenseContext = LicenseContext.NonCommercial;
using (var package = new ExcelPackage(new FileInfo(@"C:\folder\file.xlsx")))
{
var workbook = package.Workbook;
var worksheet = workbook.Worksheets[0];
// row, col, row, col
worksheet.Cells[1, 1, 3, 3].Sort(1); // sort by column 1 (0-based) the selected range
package.Save();
}
|