Question: how to export data from excel sheet to database in c#?
Answer: privatevoid btnImport_Click(object sender, EventArgs e) { string fileName; fileName = txtExcelToDatabase.Text.ToString(); Workbook workbook = newWorkbook(); workbook.LoadFromFile(fileName); Worksheet sheet = workbook.Worksheets[0];