Hi Guys,
Just want to know how to display a spreadsheet column from excel into a label field.
Here is my code i am new to vb.net so be nice
'Displays Spreadsheet information in label fields
Dim Xl = CreateObject("Excel.Application")
Dim XLB As Object
Dim XlS As Excel.Worksheet
XLB = Xl.Workbooks.Open("c:\Temp\candidate.csv") XlS = CType(XLB.Worksheets("candidate"), Excel.Worksheet)
Label1.Text = XlS.Columns.Show(1)
Cheers!
Mattcya
Just want to know how to display a spreadsheet column from excel into a label field.
Here is my code i am new to vb.net so be nice
'Displays Spreadsheet information in label fields
Dim Xl = CreateObject("Excel.Application")
Dim XLB As Object
Dim XlS As Excel.Worksheet
XLB = Xl.Workbooks.Open("c:\Temp\candidate.csv") XlS = CType(XLB.Worksheets("candidate"), Excel.Worksheet)
Label1.Text = XlS.Columns.Show(1)
Cheers!
Mattcya