# PRB: Report Page Preview Appears Briefly, Then Closes

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

Last Reviewed: June 27, 1995 © 1999 Microsoft Corporation. All rights reserved. Terms of Use.