PDA

View Full Version : Connection to dbf



codeman
28th March 2010, 20:02
Hello friends,

I try to connect to dbf files using a connectionsstring like this



QString dbfFilePath=QCoreApplication::applicationDirPath() +"/test.dbf";
QString dsn = QString("DRIVER={Microsoft dBASE Driver (*.dbf)};DriverId=277;DBQ=%1").
arg(dbfFilePath);
db.setDatabaseName(dsn);
if(!db.open())
{
//not successful
}


but it fails the pendant with excelfiles runs witout problem

Do you have experience in connecting to dbf files...?