无法将所有行从 FoxPro 导出到 Excel?
我正在尝试将表从 FoxPro 导出到 Excel,但它没有从 FoxPro 导出所有行。
我在forxpro表中有82377行,导出到excel后,我发现excel中只有65534行。我尝试了另一个有 67548 行的 Foxpro 表,但导出后,我在 Excel 和其他表中发现与旧表相同的 65534 行,并得到了相同的结果。
我使用的是 Microsoft Visual Foxpro 9.0
I'm trying to export tables from foxpro to excel, But it didn't export all rows from foxpro.
I have 82377 rows in forxpro table, after I exported to excel, I found only 65534 rows in excel. I tried another foxpro table which had 67548 rows, but after exported, I found the same as the old one 65534 rows in excel and other tables and got the same result.
I'm using Microsoft Visual Foxpro 9.0
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是正确的...VFP 从未将 Excel 格式的导出扩展到超过早期 Excel 文件的 64k 限制。
通过 CSV 复制出来,它会将它们全部转储...Excel 仍然能够读取 CSV 文件格式。
That is correct... VFP never expanded the export to excel format past the 64k limit of earlier Excel files.
Copy out via CSV and it will dump them all... Excel will still be able to read CSV file format.
我认为您正在使用 COPY TO 进行此导出。 Sine COPY TO 始终以 Excel 5.0 格式创建文件,因此无法导出超过 65534 行。
但是,如果系统上安装了 Excel 和 VFP OleDB-Driver,则导出运行时您可以使用 API 来执行此操作。
只需在您的程序中创建一个仅包含您要导出的数据的可用表。然后使用API打开Excel并通过OleDB从您刚刚创建的表中获取数据!
通过这种方式,您可以获得所安装的 Excel 版本支持的尽可能多的行。因此,如果安装了 Excel 2007 或 2010,您就可以导出 82377 行!
I think you are using COPY TO for doing this export. Sine COPY TO always creates files in the Excel 5.0 Format there will be no way to export more than 65534 rows.
But if Excel and the VFP OleDB-Driver are installed on the system the export runs you can use the API for doing this.
Just create in your program a free table with only the data you want to export. Then open Excel by using the API and fetch the data from the table you just created before via OleDB!
On this way you are able to get as many rows as the installed version of Excel supports. So if Excel 2007 or 2010 is installed you are able to export your 82377 rows!