请教各位:bcb通过ole导出xls,电脑安装的是excel2007,怎么样导出excel97-2003格式的xls文件?
bcb通过ole导出xls,电脑安装的是excel2007,怎么样导出excel97-2003格式的xls文件? Excel
[解决办法]
String strFileName = "C:\\Users\\pkgd3\\Documents\\Book2.xls";
Exout.PG("ActiveWorkbook").FN("SaveAs",
WideString(strFileName),
56, // FileFormat:=xlExcel8,
"", // Password:="",
"", // WriteResPassword:="", _
false, // ReadOnlyRecommended:=False,
false // CreateBackup:=False
);