PRB: Report Page Preview Appears Briefly, Then Closes

Last reviewed: June 27, 1995
Article ID: Q108624
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5, 2.5a, and 2.5b

SUMMARY

When you issue a REPORT FORM <form name> PREVIEW command, the preview displays briefly on the screen, and then disappears without allowing you to view its contents.

CAUSE

This behavior is caused by running a report preview on a database that contains zero records. This behavior also occurs if a filter condition or an index with a filter is in use that prevents access to any records.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Issue the following commands in the Command window:

          USE CUSTOMER.DBF
          COPY TO TEST.DBF
          CLOSE ALL
          USE TEST.DBF EXCLUSIVE
          ZAP
          CREATE REPORT TEST1.FRX
    

  2. When report TEST1.FRX opens, choose Quick Report from the Report menu, and then choose OK.

  3. Press CRTL+I to open the report in the page preview window.

The hourglass will appear, the preview will be displayed briefly, and then you will be returned to the Report Layout window.

The same behavior also occurs if you type the following commands in the Command window after you have created TEST1.FRX if TEST.DBF contains zero records:

   USE TEST.DBF EXCLUSIVE
   REPORT FORM TEST1.FRX PREVIEW

This behavior differs from that of FoxPro for MS-DOS. In FoxPro for MS-DOS, when the same report form is executing a page preview, a blank screen will be displayed, and FoxPro will wait for you to choose the Done button before returning to where the preview was called from.


Additional reference words: FoxWin 2.50 2.50a 2.50b blink flash flicker
KBCategory: kbprg kbprb
KBSubcategory: FxprgGeneral


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: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.