回帖:支持xlsx文件类型:
int fileType = 56; //默认采用xls格式
QString typeName = strPath.section('.', -1, -1);
if(typeName == "xlsx")
fileType = 51;// 56 -> xls 51 -> xlsx
qDebug()dynamicCall("SaveAs(const QString&, int, const QString&, const QString&, bool, bool)",
strPath, fileType, QString(""), QString(""), false, false);