Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# read excel file columns using epplus

 FileInfo excelFile = new FileInfo(excelFilePath); ;
                ExcelPackage.LicenseContext = LicenseContext.NonCommercial;
                using (ExcelPackage package = new ExcelPackage(new FileInfo(excelFile.ToString())))
                {
                    foreach (ExcelWorksheet worksheet in package.Workbook.Worksheets)
                    {
                        List<string> ColumnNames = new List<string>();
                        for (int i = 1; i <= worksheet.Dimension.End.Column; i++)
                        {
                            ColumnNames.Add(worksheet.Cells[1, i].Value.ToString());                }
                    }
                }
Comment

PREVIOUS NEXT
Code Example
Csharp :: method c# 
Csharp :: usermanager find based on role 
Csharp :: unity3d gameobject follow path 
Csharp :: how to instantiate and delete unity 
Csharp :: Save variable unity 
Csharp :: sends keys enter selenium c# 
Csharp :: convert rgb to float 
Csharp :: linq convert list to another list 
Csharp :: c# int division to double 
Csharp :: c# convert xml to list string 
Csharp :: list cast< c# 
Csharp :: is narcissistic number 
Csharp :: maximum sum subarray c# 
Csharp :: list c# 
Csharp :: get xml from url 
Csharp :: ado stands for 
Csharp :: c# sort llist 
Csharp :: what are delegates and how to use them c# 
Csharp :: Implementing video array in unity 
Csharp :: blazor use static json files 
Csharp :: for loop c# to print times tables 
Csharp :: c# predicate 
Csharp :: c# different getter setter types 
Csharp :: infinit range loop c# 
Csharp :: camera is rendering black screen unity 
Csharp :: how to combine constructors in c# 
Csharp :: how to populate a collection c# 
Csharp :: negative indexing in c# 
Csharp :: redsymbol.net exit traps 
Csharp :: how to pass value to anothe form c# winform 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =