PRB: Microsoft Excel 5.0 Can't Open Visual FoxPro 3.0 Table

ID: Q130711

3.00 WINDOWS kbinterop kbprb

The information in this article applies to:

  • Microsoft Visual FoxPro for Windows, version 3.0
  • Microsoft Excel version 5.0

SYMPTOMS

Attempting to open a Visual FoxPro version 3.0 table in Microsoft Excel version 5.0 or 7.0 results in this error:

   Cannot read this binary file.

CAUSE

Microsoft Excel version 5.0 cannot read a Visual FoxPro version 3.0 table directly. You must export the version 3.0 table as a FoxPro version 2.X table before Microsoft Excel version 5.0 can read it.

RESOLUTION

Before attempting to open the table file in Microsoft Excel, export it into FoxPro for Windows, version 2.x format by entering the following commands in the Command Window (assuming myfile.dbf is the table you want to open):

   USE myfile.dbf
   COPY TO myfile2.dbf TYPE FOX2

As an alternative, you can also use the FILE EXPORT command to export the file in FoxPro for Windows, version 2.x format. Once the file is exported, Microsoft Excel can open it.

Additional reference words: 3.00 VFoxWin KBCategory: kbinterop kbprb KBSubcategory: FxinteropExcel

Keywords          : FxinteropExcel 
Version           : 3.00
Platform          : WINDOWS


Last Reviewed: June 13, 1996
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.