通过学习VFP9的帮助,我的理解是,对于VFP9中的COPY TO 的命令,不支持excel2010版。因为VFP9的COPY TO 命令中,[TYPE]列举的文件类型没有XLSX,而excel2010的文件类型为XLSX
以下就是VFP9帮助中的COPY TO 命令的语句格式
COPY TO FileName [DATABASE DatabaseName [NAME LongTableName]]
[FIELDS FieldList | FIELDS LIKE Skeleton | FIELDS EXCEPT Skeleton]
[Scope] [FOR lExpression1] [WHILE lExpression2]
[ [WITH] CDX ] | [ [WITH] PRODUCTION ] [NOOPTIMIZE]
[ [TYPE] [ FOXPLUS | FOX2X | DIF | MOD | SDF | SYLK | WK1 | WKS | WR1
| WRK | CSV | XLS | XL5 | DELIMITED [ WITH Delimiter | WITH BLANK
| WITH TAB | WITH CHARACTER Delimiter ] ] ] [AS nCodePage]