c# LinqToExcel is not connecting to XLS in 64bit system but it is connecting xlsx file, tried DatabaseEngine.ace but didn't worked out.
-
Code is string filepath = @"C:\\"+"k.xls"; string sheetName = "general_report"; var excelFile = new LinqToExcel.ExcelQueryFactory(filepath); excelFile.DatabaseEngine = DatabaseEngine.Ace;
-
Code is string filepath = @"C:\\"+"k.xls"; string sheetName = "general_report"; var excelFile = new LinqToExcel.ExcelQueryFactory(filepath); excelFile.DatabaseEngine = DatabaseEngine.Ace;
Member 11053420 wrote:
@"C:\\"
Use either
@
(verbatim string) or escape the backslash, not both. And why concatenate?string filepath = @"C:\k.xls";
ought to do it. -
Code is string filepath = @"C:\\"+"k.xls"; string sheetName = "general_report"; var excelFile = new LinqToExcel.ExcelQueryFactory(filepath); excelFile.DatabaseEngine = DatabaseEngine.Ace;
-
Code is string filepath = @"C:\\"+"k.xls"; string sheetName = "general_report"; var excelFile = new LinqToExcel.ExcelQueryFactory(filepath); excelFile.DatabaseEngine = DatabaseEngine.Ace;
To know your Better Solution please Visit on http://techgurulab.com/course/c-sharp-tutorial/