Microsoft KB Archive/114502

= FIX: Error occurs when you preview an untransported FoxPro for MS-DOS report =

Article ID: 114502

Article Last Modified on 2/11/2005

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft FoxPro 2.5b
 * Microsoft FoxPro 2.6 Standard Edition
 * Microsoft FoxPro 2.6a Standard Edition
 * Microsoft FoxPro 2.5b for Macintosh

-



This article was previously published under Q114502



SYMPTOMS
In a FoxPro for Windows .EXE file, untransported FoxPro for MS-DOS reports will cause an "Internal Consistency Error" message when the report is being previewed and the horizontal scroll bar is clicked.



RESOLUTION
Transport the report to the current platform.



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been fixed in Visual FoxPro 5.0 for Windows.



Steps to Reproduce Problem
  At the MS-DOS prompt, type the following commands: C:      CD\ MD rpt_test  Start FoxPro 2.0 or 2.5x for MS-DOS.  Create a table with one memo field and populate the field with data. In FoxPro for MS-DOS, type the following commands in the Command window: SET DEFAULT TO c:\rpt_test CREATE TABLE test_tbl (field1 M)      INSERT INTO test_tbl (field1); VALUES (REPLICATE('W',500)) CREATE REPORT test_rpt.frx  From the Report menu, choose Page Layout. In the Page Layout dialog box, set the right margin column to 200.

NOTE: Setting the Right margin column to 200 is not necessary to generate the error. However, it guarantees that the Preview mode will display a horizontal scroll bar using video drivers with resolutions up to 1024 x 768. From the Report menu, choose Quick Report, and choose the OK button to create a quick report. Move the mouse cursor to the right edge of TEST_TBL.FIELD1 and hold down the CTRL key. Drag the mouse to the right edge of the report. You probably won't be able to see the right edge of the report form by default. However, when the mouse is moved to the right edge of the report, the report will scroll until the far edge is reached.</li> Save the report. When prompted to save the environment, choose Yes.</li> Quit FoxPro for MS-DOS and start FoxPro for Windows.</li>  Type the following commands in the Command window: SET DEFAULT TO c:\rpt_test CREATE PROJECT test_app MODIFY COMMAND main.prg </li>  Enter the following line of code in MAIN.PRG. Then save and close MAIN.PRG. REPORT FORM test_rpt PREVIEW ENVIRONMENT </li> Add MAIN.PRG to the TEST_APP project by choosing the Add button. Choose the Build button.</li> In the Build Option dialog box, select the Build Executable radio button. Then choose the OK button. Accept the defaults, and choose the Build button.</li> After the build process has been completed, quit FoxPro for Windows.</li>  Go to Program Manager and choose Run from the File menu. In the Command Line field, type the following, and then choose OK: c:\rpt_test\test_app.exe </li> When the Page Preview window appears, click the horizontal scroll bar at the bottom of the window.</li></ol>

The error message appears, followed by a general protection (GP) fault.

Additional query words: gpf ice errmsg err msg

Keywords: kberrmsg kbbug kbfix kbvfp500fix KB114502

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.