엑셀 ODBC 연결1 엑셀파일에 ODBC를 연결하여 엑셀의 데이터 가지고 오기 엑셀파일에 ODBC를 연결하여 엑셀의 데이터를 DataGridView에 표시해 보도록 하겠습니다. 1. 엑셀파일에 ODBC 연결하기 string excelODBCConString = "Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)};Extended Properties='Excel 8.0;HDR=YES';DBQ="; string conStr = excelODBCConString + excelFilePath; OdbcConnection con = new OdbcConnection(conStr); 2. 엑셀의 시트명 얻기 string sheetName = null; string excelODBCConString = "Driver={Microso.. 2015. 12. 24. 이전 1 다음