PRB: "Record out of Range" Error When Modifying Report

Last reviewed: April 29, 1996
Article ID: Q105009
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, version 3.0
  • Microsoft FoxPro for Windows, versions 2.5x, 2.6x

SYMPTOMS

When the MODIFY REPORT command is issued in a compact executable file and the report to be modified is an MS-DOS-style report, one the following error messages occur:

   FoxPro 2.x for Windows: "Record out of range."

   Visual FoxPro for Windows: "Report file is invalid."

RESOLUTION

Under FoxPro 2.x for Window, resolve this problem by runing the transporter on the report before modifying the report.

For example, insert the following line in the program shown below in the "More Information" section as the first line of code:

   DO TRANSPRT.FXP WITH "RPT25.FRX", 13

This line causes the transporter program, TRANSPRT.PRG, to be called prior to modification of the report.

Save the program, rebuild the executable, and rerun the .EXE file. The Transport dialog box appears, the report is transported, and the Report Writer is launched with the transported report. Note that the transporter program is included in the project and thus built into your application.

NOTE: Under Visual FoxPro for Windows, open the report files by choosing Open from the File menu. This automatically calls the converter utility.

MORE INFORMATION

Steps to Reproduce Behavior

  1. In FoxPro for MS-DOS, create a quick report. Save the report as RPT25.FRX.

  2. Open FoxPro for Windows.

  3. Create a new project and add to the project a program that contains the following code:

          MODIFY REPORT RPT25.FRX
    

  4. Save the project and build an executable file.

  5. Run the executable file from Program Manager or File Manager. The following error message appears:

          Record out of range.  Cancel or Ignore.
    


Additional reference words: XPlatForm VFoxWin FoxWin 2.50 2.50a 2.50b 2.60
2.60a 3.00 errmsg err msg
KBCategory: kbprg kberrmsg kbprb
KBSubcategory: FxtoolTransprt


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 29, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.