Nov 21st, 2007, 06:20 AM
Uploading Data in C1.Win.FlexGrid From Excel.
I have a excel sheet, in that the fields are:
I have a C1.Win.FlexGrid in which I have put the same columns in this grid with one more colum in the starting as Select(Boolean).
This is the code that I have written.....
Thje bold part of the code is giving error as:
Dim ofd As New OpenFileDialog
Dim dgtemp As C1.Win.C1FlexGrid.C1FlexGrid
Dim fn As String = ""
Dim sheetname() As String
ofd.AddExtension = True
ofd.DefaultExt = ".xls"
ofd.Filter = "Microsoft Excel Workbook(*.xls)|*.xls"
fn = ofd.FileName
txtFile.Text = fn
dgtemp = New C1.Win.C1FlexGrid.C1FlexGrid
sheetname = dgtemp.LoadExcelSheetNames(fn)
dgtemp.LoadExcel(fn, sheetname(0), C1.Win.C1FlexGrid.FileFlags.IncludeFixedCells)
"Failed to open storage file."
Click Here to Expand Forum to Full Width