解决QtQAxBase: Error calling IDispatch member SaveAs: Exception thrown by server
workbook->dynamicCall(“SaveAs(constQString&)”,file);file是不能用’/’,如果调QCoreApplication::applicationDirPath()等QT的API获取路径的,都需要调replace(’/’,‘\’)把’/‘替换成’\’,或者自行把’/‘替换成’\’。注:workbook的来源QAxObject*excel=nullptr