18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Successful Excel 2007 read/write experience
// Normal Excel 2007/2010 Worksheet
var db = _getDB("sun.jdbc.odbc.JdbcOdbcDriver", "jdbc:odbc:Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)};DBQ=C:\\sahi\\userdata\\scripts\\your_excel_file.xlsx;readOnly=false", "", "");
// Binary Excel 2007/2010 Worksheet (less space, faster operations)
var db = _getDB("sun.jdbc.odbc.JdbcOdbcDriver", "jdbc:odbc:Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)};DBQ=C:\\sahi\\userdata\\scripts\\your_excel_file.xlsb;readOnly=false", "", "");
PS: you can use any other driver available on your sistem with sahi, just check the driver name -> Control Panel\All Control Panel Items\Administrative Tools\Data Sources (ODBC)\Drivers\Name column
Example: {Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)}
var db = _getDB("sun.jdbc.odbc.JdbcOdbcDriver", "jdbc:odbc:Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)};DBQ=C:\\sahi\\userdata\\scripts\\your_excel_file.xlsx;readOnly=false", "", "");
// Binary Excel 2007/2010 Worksheet (less space, faster operations)
var db = _getDB("sun.jdbc.odbc.JdbcOdbcDriver", "jdbc:odbc:Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)};DBQ=C:\\sahi\\userdata\\scripts\\your_excel_file.xlsb;readOnly=false", "", "");
PS: you can use any other driver available on your sistem with sahi, just check the driver name -> Control Panel\All Control Panel Items\Administrative Tools\Data Sources (ODBC)\Drivers\Name column
Example: {Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)}
This discussion has been closed.
Comments