Hi All,
I have to create a VB.Net Module where user will upload excel file in one table and excel file is having multiple sheet and all have to insert in one table.
Excel File Upload with Multiple Sheet
Page 1 of 12 Replies - 605 Views - Last Post: 21 October 2012 - 09:37 PM
Replies To: Excel File Upload with Multiple Sheet
#3
Re: Excel File Upload with Multiple Sheet
Posted 21 October 2012 - 09:37 PM
Do you mean to export Exel to a DataTable?
If so, I hope my code can help you.
I use a VB .NET Excel Library
If so, I hope my code can help you.
Dim workbook As New Workbook()
workbook.LoadFromFile("C:\Simple.xls")
Dim sheet As Worksheet = workbook.Worksheets(0)
Dim dataTable As DataTable = sheet.ExportDataTable()
Me.dataGridView1.DataSource = dataTable
I use a VB .NET Excel Library
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote





|